mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
modify project name
This commit is contained in:
+8
-8
@@ -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
@@ -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',
|
||||
|
||||
@@ -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
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user