mirror of
https://github.com/unraid/api.git
synced 2026-01-02 22:50:02 -06:00
fix: web lint
This commit is contained in:
@@ -3,9 +3,9 @@ import { provide } from 'vue';
|
||||
import { createI18n, I18nInjectionKey } from 'vue-i18n';
|
||||
|
||||
import { disableProductionConsoleLogs } from '~/helpers/functions';
|
||||
disableProductionConsoleLogs();
|
||||
|
||||
import en_US from '~/locales/en_US.json'; // eslint-disable-line camelcase
|
||||
disableProductionConsoleLogs();
|
||||
// import ja from '~/locales/ja.json';
|
||||
|
||||
const defaultLocale = 'en_US'; // ja, en_US
|
||||
|
||||
@@ -9,25 +9,25 @@ for (const k in envConfig) {
|
||||
* Used to avoid redeclaring variables in the webgui codebase.
|
||||
* @see alt solution https://github.com/terser/terser/issues/1001, https://github.com/terser/terser/pull/1038
|
||||
*/
|
||||
function terserReservations(inputStr) {
|
||||
function terserReservations (inputStr) {
|
||||
const combinations = [];
|
||||
|
||||
// Add 1-character combinations
|
||||
for(let i = 0; i < inputStr.length; i++) {
|
||||
combinations.push(inputStr[i]);
|
||||
for (let i = 0; i < inputStr.length; i++) {
|
||||
combinations.push(inputStr[i]);
|
||||
}
|
||||
|
||||
// Add 2-character combinations
|
||||
for(let i = 0; i < inputStr.length; i++) {
|
||||
for(let j = 0; j < inputStr.length; j++) {
|
||||
combinations.push(inputStr[i] + inputStr[j]);
|
||||
}
|
||||
for (let i = 0; i < inputStr.length; i++) {
|
||||
for (let j = 0; j < inputStr.length; j++) {
|
||||
combinations.push(inputStr[i] + inputStr[j]);
|
||||
}
|
||||
}
|
||||
|
||||
return combinations;
|
||||
}
|
||||
|
||||
const charsToReserve = "_$abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
const charsToReserve = '_$abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
||||
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createI18n } from 'vue-i18n';
|
||||
|
||||
import en_US from '@/locales/en_US.json';
|
||||
import en_US from '@/locales/en_US.json'; // eslint-disable-line camelcase
|
||||
|
||||
export default defineNuxtPlugin(({ vueApp }) => {
|
||||
const i18n = createI18n({
|
||||
@@ -9,7 +9,7 @@ export default defineNuxtPlugin(({ vueApp }) => {
|
||||
locale: 'en_US',
|
||||
fallbackLocale: 'en_US',
|
||||
messages: {
|
||||
en_US,
|
||||
en_US, // eslint-disable-line camelcase
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user