modify project name

This commit is contained in:
MaysWind
2021-04-11 22:51:22 +08:00
parent f16eb8b28e
commit 62a825439f
98 changed files with 364 additions and 355 deletions
+3 -3
View File
@@ -13,8 +13,8 @@ export default {
return {
f7params: {
name: 'lab',
id: 'net.mayswind.lab',
name: 'ezBookkeeping',
id: 'net.mayswind.ezbookkeeping',
theme: 'ios',
autoDarkTheme: self.$settings.isEnableAutoDarkMode(),
routes: routes,
@@ -268,7 +268,7 @@ i.icon.la, i.icon.las, i.icon.lab {
color: var(--f7-radio-active-color, var(--f7-theme-color));
}
.lab-list-item-error-info div.item-footer {
.ebk-list-item-error-info div.item-footer {
color: var(--f7-input-error-text-color)
}
</style>
+8 -8
View File
@@ -3,34 +3,34 @@ import settings from './settings.js';
function logDebug(msg, obj) {
if (settings.isEnableDebug()) {
if (obj) {
console.debug('[lab Debug] ' + msg, obj);
console.debug('[ezBookkeeping Debug] ' + msg, obj);
} else {
console.debug('[lab Debug] ' + msg);
console.debug('[ezBookkeeping Debug] ' + msg);
}
}
}
function logInfo(msg, obj) {
if (obj) {
console.info('[lab Info] ' + msg, obj);
console.info('[ezBookkeeping Info] ' + msg, obj);
} else {
console.info('[lab Info] ' + msg);
console.info('[ezBookkeeping Info] ' + msg);
}
}
function logWarn(msg, obj) {
if (obj) {
console.warn('[lab Warn] ' + msg, obj);
console.warn('[ezBookkeeping Warn] ' + msg, obj);
} else {
console.warn('[lab Warn] ' + msg);
console.warn('[ezBookkeeping Warn] ' + msg);
}
}
function logError(msg, obj) {
if (obj) {
console.error('[lab Error] ' + msg, obj);
console.error('[ezBookkeeping Error] ' + msg, obj);
} else {
console.error('[lab Error] ' + msg);
console.error('[ezBookkeeping Error] ' + msg);
}
}
+2 -2
View File
@@ -3,8 +3,8 @@ import Cookies from 'js-cookie';
import currencyConstants from '../consts/currency.js';
import statisticsConstants from '../consts/statistics.js';
const settingsLocalStorageKey = 'lab_app_settings';
const serverSettingsCookieKey = 'lab_server_settings';
const settingsLocalStorageKey = 'ebk_app_settings';
const serverSettingsCookieKey = 'ebk_server_settings';
const defaultSettings = {
lang: 'en',
+6 -6
View File
@@ -3,14 +3,14 @@ import CryptoJS from 'crypto-js';
import settings from './settings.js';
import utils from './utils.js';
const appLockSecretBaseStringPrefix = 'LAB_LOCK_SECRET_';
const appLockSecretBaseStringPrefix = 'EBK_LOCK_SECRET_';
const tokenLocalStorageKey = 'lab_user_token';
const webauthnConfigLocalStorageKey = 'lab_user_webauthn_config';
const userInfoLocalStorageKey = 'lab_user_info';
const tokenLocalStorageKey = 'ebk_user_token';
const webauthnConfigLocalStorageKey = 'ebk_user_webauthn_config';
const userInfoLocalStorageKey = 'ebk_user_info';
const tokenSessionStorageKey = 'lab_user_session_token';
const appLockStateSessionStorageKey = 'lab_user_app_lock_state'; // { 'username': '', secret: '' }
const tokenSessionStorageKey = 'ebk_user_session_token';
const appLockStateSessionStorageKey = 'ebk_user_app_lock_state'; // { 'username': '', secret: '' }
function getAppLockSecret(pinCode) {
const hashedPinCode = CryptoJS.SHA256(appLockSecretBaseStringPrefix + pinCode).toString();
+1 -1
View File
@@ -512,7 +512,7 @@ function stringToArrayBuffer(str){
}
function generateRandomString() {
const baseString = 'lab_' + Math.round(new Date().getTime() / 1000) + '_' + Math.random();
const baseString = 'ebk_' + Math.round(new Date().getTime() / 1000) + '_' + Math.random();
return CryptoJS.SHA256(baseString).toString();
}
+1 -1
View File
@@ -1,7 +1,7 @@
export default {
'global': {
'app': {
'title': 'lab account book',
'title': 'ezBookkeeping',
}
},
'default': {
+1 -1
View File
@@ -1,7 +1,7 @@
export default {
'global': {
'app': {
'title': 'lab 轻记账',
'title': 'ezBookkeeping',
}
},
'default': {
+3 -3
View File
@@ -6,12 +6,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui, viewport-fit=cover">
<meta name="format-detection" content="telephone=no"/>
<meta name="description" content="lab is a lightweight account book app hosted by yourself.">
<title>lab</title>
<meta name="description" content="ezBookkeeping is a lightweight personal bookkeeping app hosted by yourself.">
<title>ezBookkeeping</title>
</head>
<body>
<noscript>
<strong>We're sorry but lab doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong>We're sorry but ezBookkeeping doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
</body>
+4 -4
View File
@@ -7,19 +7,19 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui, viewport-fit=cover">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-title" content="lab"/>
<meta name="apple-mobile-web-app-title" content="ezBookkeeping"/>
<meta name="apple-mobile-web-app-status-bar-style" content="default"/>
<meta name="theme-color" content="#c67e48">
<meta name="format-detection" content="telephone=no"/>
<meta name="description" content="lab is a lightweight account book app hosted by yourself.">
<title>lab</title>
<meta name="description" content="ezBookkeeping is a lightweight personal bookkeeping app hosted by yourself.">
<title>ezBookkeeping</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="apple-touch-icon" href="touchicon.png">
<link rel="manifest" href="manifest.json">
</head>
<body>
<noscript>
<strong>We're sorry but lab doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong>We're sorry but ezBookkeeping doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
</body>
+1 -1
View File
@@ -6,7 +6,7 @@ import {
STORE_LATEST_EXCHANGE_RATES
} from './mutations.js';
const exchangeRatesLocalStorageKey = 'lab_app_exchange_rates';
const exchangeRatesLocalStorageKey = 'ebk_app_exchange_rates';
export function getLatestExchangeRates(context, { silent, force }) {
const currentExchangeRateData = context.state.latestExchangeRates;
+2 -3
View File
@@ -7,8 +7,7 @@
<f7-list>
<f7-list-item :title="$t('Version')" :after="version"></f7-list-item>
<f7-list-item :title="$t('Build Time')" :after="buildTime | moment($t('format.datetime.long'))"></f7-list-item>
<f7-list-item external :title="$t('Official Website')" after="https://github.com/mayswind/lab"
link="https://github.com/mayswind/lab" target="_blank"></f7-list-item>
<f7-list-item external :title="$t('Official Website')" link="https://github.com/mayswind/ezbookkeeping" target="_blank"></f7-list-item>
<f7-list-item :title="$t('License')" link="#" popup-open=".license-popup"></f7-list-item>
</f7-list>
</f7-card-content>
@@ -31,7 +30,7 @@
</p>
<hr/>
<p>
<span>lab also contains additional third party software.</span><br/>
<span>ezBookkeeping also contains additional third party software.</span><br/>
<span>All the third party software included or linked is redistributed under the terms and conditions of their original licenses.</span>
</p>
<p></p>
+2 -2
View File
@@ -153,7 +153,7 @@
<span class="tabbar-label">{{ $t('Accounts') }}</span>
</f7-link>
<f7-link href="/transaction/add">
<f7-icon f7="plus_square" class="lab-tarbar-big-icon"></f7-icon>
<f7-icon f7="plus_square" class="ebk-tarbar-big-icon"></f7-icon>
</f7-link>
<f7-link href="/statistic/transaction">
<f7-icon f7="chart_pie"></f7-icon>
@@ -352,7 +352,7 @@ export default {
margin-right: 4px;
}
.tabbar-labels i.lab-tarbar-big-icon {
.tabbar-labels i.ebk-tarbar-big-icon {
font-size: 42px;
width: 42px;
height: 42px;
+2 -2
View File
@@ -1,7 +1,7 @@
<template>
<f7-page no-toolbar no-navbar no-swipeback login-screen>
<f7-login-screen-title>
<img class="login-page-logo" src="img/lab-192.png" />
<img class="login-page-logo" src="img/ezbookkeeping-192.png" />
<f7-block class="margin-vertical-half">{{ $t('global.app.title') }}</f7-block>
</f7-login-screen-title>
<f7-list form>
@@ -40,7 +40,7 @@
<f7-list>
<f7-block-footer>
<span>Powered by </span>
<f7-link external href="https://github.com/mayswind/lab" target="_blank">lab</f7-link>&nbsp;
<f7-link external href="https://github.com/mayswind/ezbookkeeping" target="_blank">ezBookkeeping</f7-link>&nbsp;
<span>{{ version }}</span>
</f7-block-footer>
<f7-block-footer>
+1 -1
View File
@@ -61,7 +61,7 @@
@input="user.nickname = $event.target.value"
></f7-list-input>
<f7-list-item class="lab-list-item-error-info" v-if="inputIsInvalid" :footer="$t(inputInvalidProblemMessage)"></f7-list-item>
<f7-list-item class="ebk-list-item-error-info" v-if="inputIsInvalid" :footer="$t(inputInvalidProblemMessage)"></f7-list-item>
</f7-list>
</f7-card-content>
</f7-card>
+1 -1
View File
@@ -101,7 +101,7 @@
</select>
</f7-list-item>
<f7-list-item class="lab-list-item-error-info" v-if="inputIsInvalid" :footer="$t(inputInvalidProblemMessage)"></f7-list-item>
<f7-list-item class="ebk-list-item-error-info" v-if="inputIsInvalid" :footer="$t(inputInvalidProblemMessage)"></f7-list-item>
</f7-list>
</f7-card-content>
</f7-card>