diff --git a/config/app/Dockerfile b/config/app/Dockerfile index 1c0344c..68b5717 100644 --- a/config/app/Dockerfile +++ b/config/app/Dockerfile @@ -17,9 +17,9 @@ RUN npm install && npm run build && npm link RUN mkdir /app WORKDIR /app -RUN nativefier https://cinemapress.io /tmp/nativefier \ - && nativefier -p osx https://cinemapress.io /tmp/nativefier \ - && nativefier -p windows https://cinemapress.io /tmp/nativefier \ +RUN nativefier https://github.com/CinemaPress/CinemaPress /tmp/nativefier \ + && nativefier -p osx https://github.com/CinemaPress/CinemaPress /tmp/nativefier \ + && nativefier -p windows https://github.com/CinemaPress/CinemaPress /tmp/nativefier \ && rm -rf /tmp/nativefier ENTRYPOINT ["nativefier"] diff --git a/files/alert.json b/files/alert.json new file mode 100644 index 0000000..d392584 --- /dev/null +++ b/files/alert.json @@ -0,0 +1,6 @@ +[ + { + "selector":"#alertCP", + "html":"         " + } +] \ No newline at end of file diff --git a/files/cinemapress.user.js b/files/cinemapress.user.js index 61adf68..213f29a 100644 --- a/files/cinemapress.user.js +++ b/files/cinemapress.user.js @@ -6,7 +6,7 @@ // @description:ru Кнопка автозаполнения информации о фильме в CinemaPress. // @description:zh CinemaPress电影信息自动完成按钮。 // @author CinemaPress -// @homepageURL https://cinemapress.io/ +// @homepageURL https://github.com/CinemaPress // @supportURL https://enota.club/ // @icon https://avatars3.githubusercontent.com/u/16612433?s=200 // @license MIT diff --git a/files/dle2cinemapress.php b/files/dle2cinemapress.php index 14c5bc2..1cf678a 100644 --- a/files/dle2cinemapress.php +++ b/files/dle2cinemapress.php @@ -3,7 +3,7 @@ ===================================================== Script export data from DLE to CinemaPress ----------------------------------------------------- - https://cinemapress.io/ + https://github.com/CinemaPress/CinemaPress ----------------------------------------------------- Copyright (c) 2020 CinemaPress ===================================================== diff --git a/themes/default/views/admin/includes/footer.ejs b/themes/default/views/admin/includes/footer.ejs index 09379ae..1c79c5f 100644 --- a/themes/default/views/admin/includes/footer.ejs +++ b/themes/default/views/admin/includes/footer.ejs @@ -78,11 +78,6 @@ for (i = 0; i < addId.length; i++) addId[i].addEventListener('click', addIdList); - var addIp = document.querySelectorAll('a[data-add-ip-name]'); - if (addIp) - for (i = 0; i < addIp.length; i++) - addIp[i].addEventListener('click', addIpList); - var delId = document.querySelectorAll('li[data-delete-name]'); if (delId) for (i = 0; i < delId.length; i++) @@ -429,54 +424,6 @@ id.value = ''; } - function addIpList() { - var self = this; - var company_input = document.querySelector('input[data-add-ip="' + self.dataset.addIpName + '"]'); - var company_name = company_input.value.trim().split(','); - company_input.value = ''; - - self.removeEventListener('click', addIpList); - self.innerHTML = ''; - - if (company_name && company_name.length) { - var name = []; - company_name.forEach(function(cn) { - name.push('name[]=' + encodeURIComponent(cn)); - }); - var xhr = new XMLHttpRequest(); - xhr.onreadystatechange = function() { - if (xhr.readyState === 4) { - if (xhr.status === 200 && xhr.responseText) { - var new_ips = JSON.parse(xhr.responseText); - var searchIps = document.querySelector('.search-ips'); - new_ips.forEach(function(ni) { - var a = document.createElement('a'); - a.setAttribute('href', 'https://whois.cinemapress.io/' + ni.split('/')[0] + '#' + company_name.join(',')); - a.setAttribute('target', '_blank'); - a.innerHTML = ' ' + ni + ' '; - searchIps.appendChild(a); - }); - var addList = document.querySelector('textarea[name="' + self.dataset.addIpName + '"]'); - var before_ips = addList.value.split(',').length; - var ips = arrayUnique(new_ips.concat(addList.value.split(','))); - var after_ips = ips.length - before_ips; - self.innerHTML = '  ' + after_ips + ' IPs'; - addList.value = ips.join(','); - setTimeout(function() { - self.innerHTML = '  <%= __('Добавить все IP') %>'; - self.addEventListener('click', addIpList); - }, 10000); - } else { - self.innerHTML = '  <%= __('Добавить все IP') %>'; - self.addEventListener('click', addIpList); - } - } - } - xhr.open('GET', 'https://company.cinemapress.io/<%- config.domain %>?' + name.join('&'), true); - xhr.send(null); - } - } - function arrayUnique(array) { var a = array.concat(); for(var i=0; i
- - -
- -