Browse Source

Fix Uglify error in production build

pull/342/head
Guillaume Vincent 7 years ago
parent
commit
e2278a436d
10 changed files with 60 additions and 73 deletions
  1. +4
    -2
      dist/i18n/de.json
  2. +5
    -3
      dist/i18n/en.json
  3. +5
    -3
      dist/i18n/es.json
  4. +4
    -2
      dist/i18n/fr.json
  5. +5
    -3
      dist/i18n/zh-CN.json
  6. +5
    -3
      dist/i18n/zh.json
  7. +2
    -2
      dist/lesspass.min.css
  8. +8
    -18
      dist/lesspass.min.js
  9. +17
    -25
      package.json
  10. +5
    -12
      webpack.config.js

+ 4
- 2
dist/i18n/de.json View File

@@ -10,21 +10,22 @@
"Email": "email",
"EmailAlreadyExist": "Diese email-Adresse ist bereits registriert. Möchten Sie sich einloggen oder Ihr Passwort wiederherstellen?",
"EmailInvalid": "Bitte geben Sie eine gültige email-Adresse ein",
"EmailRequired": "Eine Email ist erforderlich",
"EmailRequiredError": "Wir benötigen eine email-Adresse, um Ihr Konto zu finden.",
"Encrypt my master password": "Verschlüssele mein Masterpasswort",
"EncryptMasterPassword": "Hier klicken, um dieses Passwort zu verschlüsseln, bevor es an lesspass.com gesendet wird",
"ForgotPassword": "Passwort vergessen?",
"Generate": "Erstelle",
"Generating": "Wird erstellt",
"Length": "Länge",
"LessPass Database Url": "LessPass Datenbank Url",
"Login": "Login",
"LoginFormInvalid": "LessPass URL, email-Adresse und Passwort sind obligatorisch",
"LoginIncorrectError": "Die email-Adresse und das Passwort, die Sie eingegeben haben, entsprechen nicht unseren Daten. Bitte überprüfen Sie sie und versuchen es nochmal.",
"Master Password": "Masterpasswort",
"New Password": "Neues Passwort",
"Next": "Nächste",
"NoMatchFor": "Ups! Dafür gibt es keine Übereinstimmung",
"NoPassword": "Sie haben kein Passwort-Profil in Ihrer Datenbank gespeichert.",
"PasswordProfileCopied": "Ihr Passwort wurde kopiert",
"PasswordProfileSuccessfullyDeleted": "Ihr Passwort-Profil wurde erfolgreich gelöscht!",
"PasswordResetRequired": "Ein Passwort ist erforderlich",
"PasswordResetSuccessful": "Ihr Passwort wurde erfolgreich zurückgesetzt.",
@@ -36,6 +37,7 @@
"Sign In": "Anmelden",
"Site": "Seite",
"SiteLoginMasterPasswordMandatory": "Die Felder für Seite, Anmeldename und Masterpasswort sind obligatorisch.",
"SorryCopy": "Es tut uns leid, dass die Kopie nur auf modernen Browsern funktioniert",
"UpdateYourSearch": "Bitte erweitern Sie Ihre Suche.",
"Version": "Version",
"WarningV1Deprecated": "Version 1 ist veraltet und wird bald gelöscht werden. Wir empfehlen Ihnen dringend, Ihre Passwörter auf die Version 2 zu migrieren.",


+ 5
- 3
dist/i18n/en.json View File

@@ -10,21 +10,22 @@
"Email": "Email",
"EmailAlreadyExist": "This email is already registered. Want to login or recover your password?",
"EmailInvalid": "Please enter a valid email",
"EmailRequired": "An email is required",
"EmailRequiredError": "We need an email to find your account.",
"Encrypt my master password": "Encrypt my master password",
"EncryptMasterPassword": "Click me to encrypt this password before sending it to lesspass.com",
"ForgotPassword": "Forgot your password?",
"Generate": "Generate",
"Generating": "Generating",
"Length": "Length",
"LessPass Database Url": "LessPass Database Url",
"Login": "Login",
"LoginFormInvalid": "LessPass URL, email, and password are mandatory",
"LoginIncorrectError": "The email and password you entered did not match our records. Please double-check and try again.",
"Master Password": "Master Password",
"New Password": "New Password",
"Next": "Next",
"NoMatchFor": "Oops! There are no matches for",
"NoPassword": "You don't have any password profile saved in your database.",
"PasswordProfileCopied": "Your password profile has been copied",
"PasswordProfileSuccessfullyDeleted": "Your password profile has been successfully deleted!",
"PasswordResetRequired": "A password is required",
"PasswordResetSuccessful": "Your password was reset successfully.",
@@ -36,6 +37,7 @@
"Sign In": "Sign In",
"Site": "Site",
"SiteLoginMasterPasswordMandatory": "Site, login, and master password fields are mandatory.",
"SorryCopy": "We are sorry the copy only works on modern browsers",
"UpdateYourSearch": "Please try broadening your search.",
"Version": "Version",
"WarningV1Deprecated": "Version 1 is deprecated and will be deleted soon. We strongly advise you to migrate your passwords to version 2.",
@@ -44,4 +46,4 @@
"resetPasswordSuccess": "If the email address {email} is associated with a LessPass account, you will shortly receive an email from LessPass with instructions on how to reset your password.",
"version": "version",
"versionShortcut": "v"
}
}

+ 5
- 3
dist/i18n/es.json View File

@@ -10,21 +10,22 @@
"Email": "Correo electrónico",
"EmailAlreadyExist": "Este correo electrónico ya está registrado. ¿Quiere iniciar sesión o recuperar su contraseña?",
"EmailInvalid": "Ingrese un correo elecrónico válido",
"EmailRequiredError": "Necesitamos un correo electrónico para encontrar su cuenta.",
"EmailRequired": "Se requiere un email",
"Encrypt my master password": "Cifrar mi contraseña maestra",
"EmailRequiredError": "Necesitamos un correo electrónico para encontrar su cuenta.",
"EncryptMasterPassword": "Hacer clic aquí para cifrar esta contraseña antes de enviarla a lesspass.com",
"ForgotPassword": "¿Olvidó su contraseña?",
"Generate": "Generar",
"Generating": "Generando",
"Length": "Tamaño",
"LessPass Database Url": "URL de la base de datos LessPass",
"Login": "Iniciar sesión",
"LoginFormInvalid": "URL, correo electrónico y contraseña de LessPass URL son obligatorios",
"LoginIncorrectError": "El correo electrónico y la contraseña que ingresó no concuerdan con nuestros registros. Revíselos de nuevo.",
"Master Password": "Contraseña maestra",
"New Password": "Nueva contraseña",
"Next": "Después",
"NoMatchFor": "¡Vaya! No ha resultados para",
"NoPassword": "No tiene ningún perfil de contraseñas guardado en su base de datos.",
"PasswordProfileCopied": "Se ha copiado su perfil de contraseña",
"PasswordProfileSuccessfullyDeleted": "¡Su perfil de contraseñas ha sido borrado con éxito!",
"PasswordResetRequired": "Se requiere una contraseña",
"PasswordResetSuccessful": "Su contraseña ha sido reestablecida con éxito.",
@@ -36,6 +37,7 @@
"Sign In": "Registrarse",
"Site": "Sitio",
"SiteLoginMasterPasswordMandatory": "Los campos sitio, usuario y contraseña maestra son obligatorios.",
"SorryCopy": "Lamentamos que la copia sólo funcione en navegadores modernos",
"UpdateYourSearch": "Trate de ampliar su búsqueda.",
"Version": "Versión",
"WarningV1Deprecated": "La versión 1 está obsoleta y será eliminada pronto. Le recomendamos enérgicamente migrar sus contraseñas a la versión 2.",


+ 4
- 2
dist/i18n/fr.json View File

@@ -10,21 +10,22 @@
"Email": "Email",
"EmailAlreadyExist": "Cet email est déjà enregistré. Vous voulez peut-être vous connecter ?",
"EmailInvalid": "Entrez un email valide",
"EmailRequired": "Un email est obligatoire",
"EmailRequiredError": "Nous avons besoin d'un email pour trouver votre compte.",
"Encrypt my master password": "Chiffrer mon mot de passe fort",
"EncryptMasterPassword": "Cliquer pour chiffrer votre mot de passe fort avant de l'envoyer sur lesspass.com",
"ForgotPassword": "Mot de passe oublié ?",
"Generate": "Générer",
"Generating": "Génération",
"Length": "Longueur",
"LessPass Database Url": "Url de LessPass Database",
"Login": "Login",
"LoginFormInvalid": "L'URL LessPass, l'email et le mot de passe sont obligatoires.",
"LoginIncorrectError": "L'email et le mot de passe ne sont pas dans notre base de données. Vérifiez une nouvelle fois et réessayez.",
"Master Password": "Mot de passe fort",
"New Password": "Nouveau Password",
"Next": "Suivant",
"NoMatchFor": "Oups ! il n'y a aucun resultat pour",
"NoPassword": "Vous n'avez aucun mot de passe enregistré.",
"PasswordProfileCopied": "Votre profil de mot de passe a été copié",
"PasswordProfileSuccessfullyDeleted": "Votre profil de mot de passe a correctement été supprimé !",
"PasswordResetRequired": "Un mot de passe est requis",
"PasswordResetSuccessful": "Votre mot de passe a été changé avec succès",
@@ -36,6 +37,7 @@
"Sign In": "Se connecter",
"Site": "Site",
"SiteLoginMasterPasswordMandatory": "Les champs site, login et mot de passe fort sont obligatoires.",
"SorryCopy": "Nous sommes désolés, la copie ne fonctionne que sur les navigateurs modernes",
"UpdateYourSearch": "Merci de modifier votre recherche.",
"Version": "Version",
"WarningV1Deprecated": "La version 1 est déconseillée et sera supprimée bientôt. Nous vous conseillons fortement de migrer vos mots de passe vers la version 2.",


+ 5
- 3
dist/i18n/zh-CN.json View File

@@ -10,21 +10,22 @@
"Email": "邮件位址",
"EmailAlreadyExist": "这个邮件位址已被注册。想要登入或取回您的密码吗?",
"EmailInvalid": "请输入一个有效的邮件位址",
"EmailRequired": "需要一封电邮",
"EmailRequiredError": "我们需要邮件位址来找到您的帐号。",
"Encrypt my master password": "加密我的主密",
"Encrypt my master password": "加密我的主密",
"EncryptMasterPassword": "在将密码传至 lesspass.com 前,请点我加密。",
"ForgotPassword": "忘记您的登入密码了吗?",
"Generate": "产生",
"Generating": "产生中",
"Length": "长度",
"LessPass Database Url": "LessPass数据库URL",
"Login": "登入帐号",
"LoginFormInvalid": "LessPass URL、邮件位址、登入密码皆为必填栏位。",
"LoginIncorrectError": "我们查不到您输入的邮件位址及登入密码。请确认后再试一次。",
"Master Password": "主密码",
"New Password": "新密码",
"Next": "然后",
"NoMatchFor": "喔不!没有找到跟下列条件相似的结果:",
"NoPassword": "您的资料库内没有储存任何密码。",
"PasswordProfileCopied": "您的密碼配置文件已被複製。",
"PasswordProfileSuccessfullyDeleted": "已成功删除您的密码。",
"PasswordResetRequired": "请输入登入密码",
"PasswordResetSuccessful": "已成功重置您的登入密码。",
@@ -36,6 +37,7 @@
"Sign In": "登入",
"Site": "网站位址",
"SiteLoginMasterPasswordMandatory": "网站位址、登入帐号、主密码皆为必填栏位。",
"SorryCopy": "我们很抱歉,该副本仅适用于现代浏览器",
"UpdateYourSearch": "请试着放宽您的搜寻条件。",
"Version": "版本",
"WarningV1Deprecated": "版本 1 已不支援,不久将被删除。 我们强烈得建议您将密码换至版本 2。",


+ 5
- 3
dist/i18n/zh.json View File

@@ -10,21 +10,22 @@
"Email": "郵件位址",
"EmailAlreadyExist": "這個郵件位址已被註冊。想要登入或取回您的密碼嗎?",
"EmailInvalid": "請輸入一個有效的郵件位址",
"EmailRequired": "需要一封電郵",
"EmailRequiredError": "我們需要郵件位址來找到您的帳號。",
"Encrypt my master password": "加密我的主密",
"Encrypt my master password": "加密我的主密",
"EncryptMasterPassword": "在將密碼傳至 lesspass.com 前,請點我加密。",
"ForgotPassword": "忘記您的登入密碼了嗎?",
"Generate": "產生",
"Generating": "產生中",
"Length": "長度",
"LessPass Database Url": "LessPass數據庫URL",
"Login": "登入帳號",
"LoginFormInvalid": "LessPass URL、郵件位址、登入密碼皆為必填欄位。",
"LoginIncorrectError": "我們查不到您輸入的郵件位址及登入密碼。請確認後再試一次。",
"Master Password": "主密碼",
"New Password": "新密碼",
"Next": "然後",
"NoMatchFor": "喔不!沒有找到跟下列條件相似的結果:",
"NoPassword": "您的資料庫內沒有儲存任何密碼。",
"PasswordProfileCopied": "您的密码配置文件已被复制。",
"PasswordProfileSuccessfullyDeleted": "已成功刪除您的密碼。",
"PasswordResetRequired": "請輸入登入密碼",
"PasswordResetSuccessful": "已成功重置您的登入密碼。",
@@ -36,6 +37,7 @@
"Sign In": "登入",
"Site": "網站位址",
"SiteLoginMasterPasswordMandatory": "網站位址、登入帳號、主密碼皆為必填欄位。",
"SorryCopy": "我們很抱歉,該副本僅適用於現代瀏覽器",
"UpdateYourSearch": "請試著放寬您的搜尋條件。",
"Version": "版本",
"WarningV1Deprecated": "版本 1 已不支援,不久將被刪除。 我們強烈得建議您將密碼換至版本 2。",


+ 2
- 2
dist/lesspass.min.css
File diff suppressed because it is too large
View File


+ 8
- 18
dist/lesspass.min.js
File diff suppressed because it is too large
View File


+ 17
- 25
package.json View File

@@ -12,16 +12,14 @@
"build": "rm -rf dist && cross-env NODE_ENV=production webpack -p",
"build:i18n": "cd scripts && node buildI18n.js",
"dev": "webpack-dev-server --inline --hot --host 0.0.0.0",
"test": "ava test --compilers js:babel-register"
"test": "ava test"
},
"babel": {
"comments": false,
"plugins": [
"transform-runtime"
],
"presets": [
"es2015",
"stage-2"
"env"
],
"plugins": [
"transform-object-rest-spread"
]
},
"dependencies": {
@@ -34,7 +32,7 @@
"jwt-decode": "^2.2.0",
"lesspass": "^6.0.0",
"lodash.debounce": "^4.0.8",
"vue": "^2.3.2",
"vue": "^2.3.3",
"vue-polyglot": "^0.1.8",
"vue-router": "^2.5.3",
"vuejs-paginate": "^0.9.0",
@@ -46,37 +44,31 @@
"ava": "^0.19.1",
"babel-core": "^6.24.1",
"babel-loader": "^7.0.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-preset-env": "^1.5.1",
"babel-register": "^6.24.1",
"babel-runtime": "^6.23.0",
"copy-webpack-plugin": "^4.0.1",
"cross-env": "^4.0.0",
"css-loader": "^0.28.1",
"express": "^4.15.2",
"cross-env": "^5.0.0",
"css-loader": "^0.28.2",
"express": "^4.15.3",
"extract-text-webpack-plugin": "^2.1.0",
"file-loader": "^0.11.1",
"husky": "^0.13.3",
"json-loader": "^0.5.4",
"nock": "^9.0.13",
"node-sass": "^4.5.2",
"optimize-css-assets-webpack-plugin": "^1.3.1",
"sass-loader": "^6.0.3",
"style-loader": "^0.17.0",
"node-sass": "^4.5.3",
"sass-loader": "^6.0.5",
"style-loader": "^0.18.1",
"timekeeper": "^1.0.0",
"url-loader": "^0.5.8",
"vue-loader": "^12.0.3",
"vue-loader": "^12.1.0",
"vue-polyglot-utils": "^0.1.1",
"vue-template-compiler": "^2.3.2",
"vue-template-compiler": "^2.3.3",
"walk": "^2.3.9",
"webpack": "^2.4.1",
"webpack-dev-server": "^2.4.5"
},
"ava": {
"require": [
"babel-register"
],
"require": "babel-register",
"babel": "inherit"
}
}

+ 5
- 12
webpack.config.js View File

@@ -1,7 +1,6 @@
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
@@ -16,10 +15,12 @@ module.exports = {
module: {
rules: [
{test: /\.vue$/, loader: 'vue-loader'},
{test: /\.js$/, include: [path.resolve(__dirname, './src')], loader: 'babel-loader'},
{test: /\.json/, loader: 'json-loader'},
{test: /\.js$/, exclude: /node_modules\/(?!copy-text-to-clipboard)/, loader: "babel-loader"},
{test: /\.(png|jpg|jpeg|gif)$/, loader: 'file-loader?name=[name].[ext]'},
{test: /\.scss$/, loader: ExtractTextPlugin.extract({fallback: 'style-loader', use: 'css-loader!sass-loader', publicPath: ''})},
{
test: /\.scss$/,
loader: ExtractTextPlugin.extract({fallback: 'style-loader', use: 'css-loader!sass-loader', publicPath: ''})
},
{test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: 'url-loader?limit=8192&mimetype=application/font-woff'},
{test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: 'url-loader?limit=8192&mimetype=application/font-woff'},
{test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'url-loader?limit=8192&mimetype=application/octet-stream'},
@@ -32,11 +33,3 @@ module.exports = {
new CopyWebpackPlugin([{context: './src/i18n', from: '**/*.json', to: 'i18n'}])
]
};

if (process.env.NODE_ENV === 'production') {
module.exports.devtool = false;
module.exports.plugins = (module.exports.plugins || []).concat([
new OptimizeCssAssetsPlugin()
]);
}


Loading…
Cancel
Save