-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3036 from usu/chore/remove-pagedjs
chore(print): remove pagedjs + prepare for alpha
- Loading branch information
Showing
62 changed files
with
644 additions
and
1,578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,95 @@ | ||
<!-- index.html for vite dev server --> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="mobile-web-app-capable" content="yes"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/browserassets/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/browserassets/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/browserassets/favicon-16x16.png"> | ||
<link rel="mask-icon" href="/browserassets/safari-pinned-tab.svg" color="#263238"> | ||
<meta name="msapplication-TileColor" content="#263238"> | ||
<meta name="theme-color" content="#263238"> | ||
<link rel="manifest" href="/manifest.webmanifest"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
<link rel="icon" href="/favicon.svg"> | ||
<title>eCamp3</title> | ||
<!-- consider enabling CDN for production | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="apple-mobile-web-app-capable" content="yes" /> | ||
<meta name="mobile-web-app-capable" content="yes" /> | ||
<link | ||
rel="apple-touch-icon" | ||
sizes="180x180" | ||
href="/browserassets/apple-touch-icon.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="32x32" | ||
href="/browserassets/favicon-32x32.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="16x16" | ||
href="/browserassets/favicon-16x16.png" | ||
/> | ||
<link rel="mask-icon" href="/browserassets/safari-pinned-tab.svg" color="#263238" /> | ||
<meta name="msapplication-TileColor" content="#263238" /> | ||
<meta name="theme-color" content="#263238" /> | ||
<link rel="manifest" href="/manifest.webmanifest" /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> | ||
<link rel="icon" href="/favicon.svg" /> | ||
<title>eCamp3</title> | ||
<!-- consider enabling CDN for production | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"> --> | ||
</head> | ||
<body> | ||
<noscript> | ||
<strong lang="en">Sorry, eCamp does not work without JavaScript. Please enable JavaScript to continue.</strong><br> | ||
<strong lang="de">Sorry, eCamp funktioniert nicht ohne JavaScript. Bitte aktiviere JavaScript um fortzufahren.</strong><br> | ||
<strong lang="fr">Désolé, eCamp ne fonctionne pas sans JavaScript. Veuillez activer JavaScript pour continuer.</strong><br> | ||
<strong lang="it">Spiacente, eCamp non funziona senza JavaScript. Per favore, abilita JavaScript per continuare.</strong> | ||
</noscript> | ||
</head> | ||
<body> | ||
<noscript> | ||
<strong lang="en" | ||
>Sorry, eCamp does not work without JavaScript. Please enable JavaScript to | ||
continue.</strong | ||
><br /> | ||
<strong lang="de" | ||
>Sorry, eCamp funktioniert nicht ohne JavaScript. Bitte aktiviere JavaScript um | ||
fortzufahren.</strong | ||
><br /> | ||
<strong lang="fr" | ||
>Désolé, eCamp ne fonctionne pas sans JavaScript. Veuillez activer JavaScript pour | ||
continuer.</strong | ||
><br /> | ||
<strong lang="it" | ||
>Spiacente, eCamp non funziona senza JavaScript. Per favore, abilita JavaScript | ||
per continuare.</strong | ||
> | ||
</noscript> | ||
|
||
<div id="app"></div> | ||
<script src="/environment.js" lang="application/javascript"></script> | ||
<script> | ||
if ('environment' in window) { | ||
const requiredKeys = [ | ||
'API_ROOT_URL', | ||
'COOKIE_PREFIX', | ||
'PRINT_SERVER', | ||
'SENTRY_FRONTEND_DSN', | ||
'SHARED_COOKIE_DOMAIN', | ||
'DEPLOYMENT_TIME', | ||
'VERSION', | ||
'VERSION_LINK_TEMPLATE', | ||
] | ||
<div id="app"></div> | ||
<script src="/environment.js" lang="application/javascript"></script> | ||
<script> | ||
if ('environment' in window) { | ||
const requiredKeys = [ | ||
'API_ROOT_URL', | ||
'COOKIE_PREFIX', | ||
'PRINT_URL', | ||
'SENTRY_FRONTEND_DSN', | ||
'SHARED_COOKIE_DOMAIN', | ||
'DEPLOYMENT_TIME', | ||
'VERSION', | ||
'VERSION_LINK_TEMPLATE', | ||
] | ||
|
||
const missingKeys = requiredKeys.filter(key => !Object.keys(window.environment).includes(key)) | ||
if (missingKeys.length > 0) { | ||
console.error(`Missing key(s): "${missingKeys.join(',')}" in frontend/public/environment.js | ||
const missingKeys = requiredKeys.filter( | ||
(key) => !Object.keys(window.environment).includes(key) | ||
) | ||
if (missingKeys.length > 0) { | ||
console.error(`Missing key(s): "${missingKeys.join( | ||
',' | ||
)}" in frontend/public/environment.js | ||
You can look up example values in frontend/public/environment.dist`) | ||
} | ||
} | ||
|
||
const additionalKeys = Object.keys(window.environment).filter(key => !requiredKeys.includes(key)) | ||
if (additionalKeys.length > 0) { | ||
console.error(`Additional defined key(s): "${additionalKeys.join(',')}" in frontend/public/environment.js | ||
const additionalKeys = Object.keys(window.environment).filter( | ||
(key) => !requiredKeys.includes(key) | ||
) | ||
if (additionalKeys.length > 0) { | ||
console.error(`Additional defined key(s): "${additionalKeys.join( | ||
',' | ||
)}" in frontend/public/environment.js | ||
Maybe you forgot to add them here to the requiredKeys`) | ||
} | ||
} | ||
</script> | ||
<script type="module" src="/src/main.js"></script> | ||
<!-- built files will be auto injected --> | ||
</body> | ||
} | ||
} | ||
</script> | ||
<script type="module" src="/src/main.js"></script> | ||
<!-- built files will be auto injected --> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<template> | ||
<v-tooltip :disabled="hideTooltip" bottom> | ||
<template #activator="{ on }"> | ||
<v-icon v-if="value" small v-on="on"> mdi-lock-open-variant </v-icon> | ||
<v-icon v-else small color="grey" v-on="on"> mdi-lock </v-icon> | ||
</template> | ||
<span>{{ message || $tc('components.generic.lockIcon.guestsCannotEdit') }}</span> | ||
</v-tooltip> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'LockIcon', | ||
props: { | ||
value: { | ||
type: Boolean, | ||
required: true, | ||
}, | ||
message: { | ||
type: String, | ||
required: false, | ||
default: null, | ||
}, | ||
hideTooltip: { | ||
type: Boolean, | ||
required: false, | ||
default: false, | ||
}, | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<template> | ||
<v-list-item :disabled="disabled" v-on="$listeners"> | ||
<v-list-item-icon> | ||
<v-icon v-if="value" :disabled="disabled">mdi-lock</v-icon> | ||
<v-icon v-else :disabled="disabled">mdi-lock-open-variant</v-icon> | ||
</v-list-item-icon> | ||
<v-list-item-title> | ||
{{ value ? $tc('global.button.lock') : $tc('global.button.unlock') }} | ||
</v-list-item-title> | ||
</v-list-item> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
value: { | ||
type: Boolean, | ||
required: true, | ||
}, | ||
disabled: { | ||
type: Boolean, | ||
required: false, | ||
default: false, | ||
}, | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.