From: Kilian Saffran Date: Fri, 31 May 2024 09:54:40 +0000 (+0200) Subject: v240531 removed data X-Git-Tag: 0.12.4~2 X-Git-Url: http://cloud.dks.lu/git/?a=commitdiff_plain;h=b86f821ef256caacc050240ba5391c9823c901ae;p=ngl-snep.git v240531 removed data --- diff --git a/dev/release_app.sh b/dev/release_app.sh index a883f9a..399f208 100644 --- a/dev/release_app.sh +++ b/dev/release_app.sh @@ -1,7 +1,7 @@ #!/bin/bash CALLDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source ${CALLDIR}'/fileconf.sh' -UPLOAD=$1 +ACTION=$1 CDATE=`date +"%F"` BASEDIR=(`dirname ${CALLDIR}`) cd "${APPDIR}" @@ -30,6 +30,10 @@ else git tag -a -m "v$newtag" $newtag fi echo "export tag: $newtag" +if [ ! -d "${BASEDIR}/release" ] +then + mkdir "${BASEDIR}/release" +fi if [ -f "${BASEDIR}/release/$newtag.tgz" ] then rm "${BASEDIR}/release/$newtag.tgz" @@ -38,6 +42,7 @@ git archive --format=tgz -o ${BASEDIR}/release/$newtag.tgz $newtag:public_html/ echo "extract tag" cd ${BASEDIR}/release/ + if [ ! -d "${BASEDIR}/release/$newtag" ] then mkdir "${BASEDIR}/release/$newtag" @@ -54,9 +59,14 @@ rm ${BASEDIR}/release/$newtag/config.prod.php rm -rf ${BASEDIR}/release/test/ rm -rf ${BASEDIR}/release/log/*.log rm -rf ${BASEDIR}/release/$newtag/test*php -exit +rm ${BASEDIR}/release/$newtag.tgz + echo "Sync to Prod" -rsync -n -av -e "ssh -p ${SSHPORT}" ${BASEDIR}/release/$newtag/* ${SSHUSER}@${SSHHOST}${REMOTEAPPFOLDER}/ +if [[ "${ACTION}" == "update" ]] +then + rsync -n -av -e "ssh -p ${SSHPORT}" ${BASEDIR}/release/$newtag/* ${SSHUSER}@${SSHHOST}${REMOTEAPPFOLDER}/ +fi +exit #find . -type f -printf "%p|%s|%TY%Tm%Td%TH%TM%.2TS\n" | grep -v "./data/" | grep -v "./log/" | grep -v "./config." | grep -v "./lib/Config.php" | sort > ${TMPDIR}/sourcefiles.local.txt #ssh -p ${SSHPORT} ${SSHUSER}@${SSHHOST} 'cd '${REMOTEAPPFOLDER}' && find . -type f -printf "%p|%s|%TY%Tm%Td%TH%TM%.2TS\n" | grep -v "./data/" | grep -v "/log/" | grep -v "./config./" | grep -v "./lib/Config.php" | sort' > ${TMPDIR}/sourcefiles.remote.txt diff --git a/public_html/.version b/public_html/.version deleted file mode 100644 index e69de29..0000000 diff --git a/public_html/manifest.webmanifest b/public_html/manifest.webmanifest deleted file mode 100644 index 9787eaf..0000000 --- a/public_html/manifest.webmanifest +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "POT", - "short_name": "POT", - "icons": [ - { - "src": "/img/favicon/android-icon-36x36.png", - "sizes": "36x36", - "type": "image/png", - "density": "0.75" - }, - { - "src": "/img/favicon/android-icon-48x48.png", - "sizes": "48x48", - "type": "image/png", - "density": "1.0" - }, - { - "src": "/img/favicon/android-icon-72x72.png", - "sizes": "72x72", - "type": "image/png", - "density": "1.5" - }, - { - "src": "/img/favicon/android-icon-96x96.png", - "sizes": "96x96", - "type": "image/png", - "density": "2.0" - }, - { - "src": "/img/favicon/android-icon-144x144.png", - "sizes": "144x144", - "type": "image/png", - "density": "3.0" - }, - { - "src": "/img/favicon/android-icon-192x192.png", - "sizes": "192x192", - "type": "image/png", - "density": "4.0" - }, - { - "src": "/img/favicon/android-icon-512x512.png", - "sizes": "512x512", - "type": "image/png", - "density": "4.0" - } - ], - "start_url":"/index.html", - "background_color":"#52638e", - "theme_color":"#52638e", - "display":"standalone", - "orientation":"landscape" -} \ No newline at end of file diff --git a/public_html/pwa/android-icon-192x192.png b/public_html/pwa/android-icon-192x192.png deleted file mode 100644 index f58a3e6..0000000 Binary files a/public_html/pwa/android-icon-192x192.png and /dev/null differ diff --git a/public_html/pwa/apple-icon-180x180.png b/public_html/pwa/apple-icon-180x180.png deleted file mode 100644 index 7541cce..0000000 Binary files a/public_html/pwa/apple-icon-180x180.png and /dev/null differ diff --git a/public_html/pwa/apple-icon-64x64.png b/public_html/pwa/apple-icon-64x64.png deleted file mode 100644 index 31a3f78..0000000 Binary files a/public_html/pwa/apple-icon-64x64.png and /dev/null differ diff --git a/public_html/pwa/favicon-32x32.png b/public_html/pwa/favicon-32x32.png deleted file mode 100644 index 3281e25..0000000 Binary files a/public_html/pwa/favicon-32x32.png and /dev/null differ diff --git a/public_html/pwa/manifest.webmanifest b/public_html/pwa/manifest.webmanifest deleted file mode 100644 index 5d92686..0000000 --- a/public_html/pwa/manifest.webmanifest +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "POT", - "start_url": "http://dks-laptop/app_plandutravail_lu/", - "display": "standalone", - "dir": "ltr", - "lang": "fr-FR", - "background_color": "#fff", - "theme_color": "#fff", - "description": "Plan d'Organisation du Travail", - "icons": [ - { - "src": "http://dks-laptop/app_plandutravail_lu/pwa/android-icon-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "http://dks-laptop/app_plandutravail_lu/pwa/poticon512.png", - "sizes": "512x512", - "type": "image/png" - } - ] -} \ No newline at end of file diff --git a/public_html/pwa/ms-icon-270x270.png b/public_html/pwa/ms-icon-270x270.png deleted file mode 100644 index 12046d8..0000000 Binary files a/public_html/pwa/ms-icon-270x270.png and /dev/null differ diff --git a/public_html/pwa/poticon512.png b/public_html/pwa/poticon512.png deleted file mode 100644 index bce391c..0000000 Binary files a/public_html/pwa/poticon512.png and /dev/null differ diff --git a/public_html/pwa/serviceworker.js b/public_html/pwa/serviceworker.js deleted file mode 100644 index 90aff62..0000000 --- a/public_html/pwa/serviceworker.js +++ /dev/null @@ -1,444 +0,0 @@ -/* PWA v0.6.0-front */ - -/* Note: This file is dynamically generated. To manipulate the contents of this file, use the `wp_front_service_worker` action in WordPress. /* - - -/* Source wp-base-config: */ -!function(){"use strict";try{self["workbox:sw:5.1.4"]&&_()}catch(t){}const t={backgroundSync:"background-sync",broadcastUpdate:"broadcast-update",cacheableResponse:"cacheable-response",core:"core",expiration:"expiration",googleAnalytics:"offline-ga",navigationPreload:"navigation-preload",precaching:"precaching",rangeRequests:"range-requests",routing:"routing",strategies:"strategies",streams:"streams"};self.workbox=new class{constructor(){return this.v={},this.t={debug:"localhost"===self.location.hostname,modulePathPrefix:null,modulePathCb:null},this.s=this.t.debug?"dev":"prod",this.o=!1,new Proxy(this,{get(e,s){if(e[s])return e[s];const o=t[s];return o&&e.loadModule("workbox-"+o),e[s]}})}setConfig(t={}){if(this.o)throw new Error("Config must be set before accessing workbox.* modules");Object.assign(this.t,t),this.s=this.t.debug?"dev":"prod"}loadModule(t){const e=this.i(t);try{importScripts(e),this.o=!0}catch(s){throw console.error(`Unable to import module '${t}' from '${e}'.`),s}}i(t){if(this.t.modulePathCb)return this.t.modulePathCb(t,this.t.debug);let e=["https://storage.googleapis.com/workbox-cdn/releases/5.1.4"];const s=`${t}.${this.s}.js`,o=this.t.modulePathPrefix;return o&&(e=o.split("/"),""===e[e.length-1]&&e.splice(e.length-1,1)),e.push(s),e.join("/")}}}(); -workbox.setConfig( {"debug":false,"modulePathPrefix":"https:\/\/www.saffran.lu\/wp-content\/plugins\/pwa\/wp-includes\/js\/workbox-v5.1.4\/"} ); -workbox.core.setCacheNameDetails( {"prefix":"wp-\/","precache":"precache-front","suffix":"v1"} ); -workbox.core.skipWaiting(); -workbox.core.clientsClaim(); -/* global workbox */ - -/** - * Handle registering caching strategies. - */ - -if (!self.wp) { - self.wp = {}; -} - -wp.serviceWorker = workbox; - -/* - * Skip the waiting phase for the Service Worker when a message with a 'skipWaiting' action is sent from a client. - * Note that this message is not currently being sent in the codebase, but the logic remains here to provide a - * mechanism for clients to skip waiting if they want to. - */ -self.addEventListener('message', function (event) { - if ('skipWaiting' === event.data.action) { - self.skipWaiting(); - } -}); - - -/* Source wp-precaching-routes: */ - - -// IIFE is used for lexical scoping instead of just a braces block due to bug in Safari. -(() => { - wp.serviceWorker.precaching.precache([{"url":"http:\/\/dks-laptop\/app_plandutravail_lu\/login.html","revision":"1.0.0;POT=1.0"},{"url":"http:\/\/dks-laptop\/app_plandutravail_lu\/login.html","revision":"1.0.0;POT=1.0"}]); - - // @todo Should not these parameters be specific to each entry as opposed to all entries? - // @todo Should not the strategy be tied to each entry as well? - // @todo Use networkFirst instead of cacheFirst when WP_DEBUG. - wp.serviceWorker.precaching.addRoute({ - ignoreUrlParametersMatching: [/^utm_/, /^wp-mce-/, /^ver$/], - // @todo Add urlManipulation which allows for the list of ignoreUrlParametersMatching to be supplied with each entry. - }); -})(); - - -/* Source wp-offline-commenting: */ - - -// IIFE is used for lexical scoping instead of just a braces block due to bug with const in Safari. -(() => { - const queue = new wp.serviceWorker.backgroundSync.Queue( - 'PendingComments' - ); - const errorMessages = {"clientOffline":"It seems you are offline. Please check your internet connection and try again.","serverOffline":"The server appears to be down, or your connection isn't working as expected. Please try again later.","error":"Something prevented the page from being rendered. Please try again.","comment":"Your comment will be submitted once you are back online!"}; - - const commentHandler = ({ event }) => { - const clone = event.request.clone(); - return fetch(event.request) - .then((response) => { - if (response.status < 500) { - return response; - } - - // @todo This is duplicated with code in service-worker-navigation-routing.js. - return response.text().then(function (errorText) { - return caches - .match( - wp.serviceWorker.precaching.getCacheKeyForURL( - "http:\/\/dks-laptop\/app_plandutravail_lu\/login.html" - ) - ) - .then(function (errorResponse) { - if (!errorResponse) { - return response; - } - - return errorResponse.text().then(function (text) { - const init = { - status: errorResponse.status, - statusText: errorResponse.statusText, - headers: errorResponse.headers, - }; - - let body = text.replace( - /[<]!--SERVICE_WORKER_ERROR_MESSAGE-->/, - errorMessages.error - ); - body = body.replace( - /([<]!--SERVICE_WORKER_ERROR_TEMPLATE_BEGIN-->)((?:.|\n)+?)([<]!--SERVICE_WORKER_ERROR_TEMPLATE_END-->)/, - (details) => { - if (!errorText) { - return ''; // Remove the details from the document entirely. - } - const src = - 'data:text/html;base64,' + - btoa(errorText); // The errorText encoded as a text/html data URL. - const srcdoc = errorText - .replace(/&/g, '&') - .replace(/'/g, ''') - .replace(/"/g, '"') - .replace(//g, '>'); - const iframe = ``; - details = details.replace( - '{{{error_details_iframe}}}', - iframe - ); - // The following are in case the user wants to include the `; - details = details.replace( - '{{{error_details_iframe}}}', - iframe - ); - // The following are in case the user wants to include the