mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Sort define keys
This commit is contained in:
parent
facbda4f2f
commit
da52ed9b6e
3 changed files with 8 additions and 8 deletions
|
@ -264,10 +264,10 @@ module.exports = {
|
||||||
'Windows': 'readonly',
|
'Windows': 'readonly',
|
||||||
// Build time definitions
|
// Build time definitions
|
||||||
__JF_BUILD_VERSION__: 'readonly',
|
__JF_BUILD_VERSION__: 'readonly',
|
||||||
__USE_SYSTEM_FONTS__: 'readonly',
|
|
||||||
__WEBPACK_SERVE__: 'readonly',
|
|
||||||
__PACKAGE_JSON_NAME__: 'readonly',
|
__PACKAGE_JSON_NAME__: 'readonly',
|
||||||
__PACKAGE_JSON_VERSION__: 'readonly'
|
__PACKAGE_JSON_VERSION__: 'readonly',
|
||||||
|
__USE_SYSTEM_FONTS__: 'readonly',
|
||||||
|
__WEBPACK_SERVE__: 'readonly'
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'@typescript-eslint/prefer-string-starts-ends-with': ['error']
|
'@typescript-eslint/prefer-string-starts-ends-with': ['error']
|
||||||
|
|
4
src/global.d.ts
vendored
4
src/global.d.ts
vendored
|
@ -16,8 +16,8 @@ export declare global {
|
||||||
}
|
}
|
||||||
|
|
||||||
const __JF_BUILD_VERSION__: string;
|
const __JF_BUILD_VERSION__: string;
|
||||||
const __USE_SYSTEM_FONTS__: string;
|
|
||||||
const __WEBPACK_SERVE__: string;
|
|
||||||
const __PACKAGE_JSON_NAME__: string;
|
const __PACKAGE_JSON_NAME__: string;
|
||||||
const __PACKAGE_JSON_VERSION__: string;
|
const __PACKAGE_JSON_VERSION__: string;
|
||||||
|
const __USE_SYSTEM_FONTS__: string;
|
||||||
|
const __WEBPACK_SERVE__: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,10 +52,10 @@ const config = {
|
||||||
process.env.WEBPACK_SERVE ?
|
process.env.WEBPACK_SERVE ?
|
||||||
'Dev Server' :
|
'Dev Server' :
|
||||||
process.env.JELLYFIN_VERSION || 'Release'),
|
process.env.JELLYFIN_VERSION || 'Release'),
|
||||||
__USE_SYSTEM_FONTS__: JSON.stringify(!!process.env.USE_SYSTEM_FONTS),
|
|
||||||
__WEBPACK_SERVE__: JSON.stringify(!!process.env.WEBPACK_SERVE),
|
|
||||||
__PACKAGE_JSON_NAME__: JSON.stringify(packageJson.name),
|
__PACKAGE_JSON_NAME__: JSON.stringify(packageJson.name),
|
||||||
__PACKAGE_JSON_VERSION__: JSON.stringify(packageJson.version)
|
__PACKAGE_JSON_VERSION__: JSON.stringify(packageJson.version),
|
||||||
|
__USE_SYSTEM_FONTS__: JSON.stringify(!!process.env.USE_SYSTEM_FONTS),
|
||||||
|
__WEBPACK_SERVE__: JSON.stringify(!!process.env.WEBPACK_SERVE)
|
||||||
}),
|
}),
|
||||||
new CleanWebpackPlugin(),
|
new CleanWebpackPlugin(),
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue