mirror of
https://github.com/DCsunset/taskwarrior-webui.git
synced 2025-08-21 13:53:07 +02:00
feat(frontend): locally serve fonts and icons
This commit is contained in:
parent
a7ecf4945f
commit
57f80e72fc
4 changed files with 22 additions and 1 deletions
|
@ -2,3 +2,5 @@
|
||||||
//
|
//
|
||||||
// The variables you want to modify
|
// The variables you want to modify
|
||||||
// $font-size-root: 20px;
|
// $font-size-root: 20px;
|
||||||
|
|
||||||
|
$body-font-family: 'Open Sans', sans-serif !default;
|
||||||
|
|
|
@ -33,6 +33,10 @@ export default {
|
||||||
** Global CSS
|
** Global CSS
|
||||||
*/
|
*/
|
||||||
css: [
|
css: [
|
||||||
|
// mdi font
|
||||||
|
'@mdi/font/css/materialdesignicons.css',
|
||||||
|
// main font
|
||||||
|
'typeface-open-sans/index.css'
|
||||||
],
|
],
|
||||||
/*
|
/*
|
||||||
** Plugins to load before mounting the App
|
** Plugins to load before mounting the App
|
||||||
|
@ -95,6 +99,9 @@ export default {
|
||||||
** https://github.com/nuxt-community/vuetify-module
|
** https://github.com/nuxt-community/vuetify-module
|
||||||
*/
|
*/
|
||||||
vuetify: {
|
vuetify: {
|
||||||
|
defaultAssets: false,
|
||||||
|
customVariables: ['~/assets/variables.scss'],
|
||||||
|
treeShake: true // to make customVariables work in dev
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
** Build configuration
|
** Build configuration
|
||||||
|
|
10
frontend/package-lock.json
generated
10
frontend/package-lock.json
generated
|
@ -960,6 +960,11 @@
|
||||||
"resolved": "https://registry.npm.taobao.org/@csstools/convert-colors/download/@csstools/convert-colors-1.4.0.tgz",
|
"resolved": "https://registry.npm.taobao.org/@csstools/convert-colors/download/@csstools/convert-colors-1.4.0.tgz",
|
||||||
"integrity": "sha1-rUldxBsS511YjG24uYNPCPoTHrc="
|
"integrity": "sha1-rUldxBsS511YjG24uYNPCPoTHrc="
|
||||||
},
|
},
|
||||||
|
"@mdi/font": {
|
||||||
|
"version": "5.3.45",
|
||||||
|
"resolved": "https://registry.npmjs.org/@mdi/font/-/font-5.3.45.tgz",
|
||||||
|
"integrity": "sha512-SD5d2vHEKRvDCInZQFXOwiFpBlzpuZOiqwxKf6E+zCt7UDc52TUSrL0+TXqY57VQh/SnTpZVXM+Uvs21OdPFWg=="
|
||||||
|
},
|
||||||
"@nodelib/fs.scandir": {
|
"@nodelib/fs.scandir": {
|
||||||
"version": "2.1.3",
|
"version": "2.1.3",
|
||||||
"resolved": "https://registry.npm.taobao.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.3.tgz",
|
"resolved": "https://registry.npm.taobao.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.3.tgz",
|
||||||
|
@ -11184,6 +11189,11 @@
|
||||||
"resolved": "https://registry.npm.taobao.org/typedarray/download/typedarray-0.0.6.tgz",
|
"resolved": "https://registry.npm.taobao.org/typedarray/download/typedarray-0.0.6.tgz",
|
||||||
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
|
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
|
||||||
},
|
},
|
||||||
|
"typeface-open-sans": {
|
||||||
|
"version": "0.0.75",
|
||||||
|
"resolved": "https://registry.npmjs.org/typeface-open-sans/-/typeface-open-sans-0.0.75.tgz",
|
||||||
|
"integrity": "sha512-0lLmB7pfj113OP4T78SbpSmC4OCdFQ0vUxdSXQccsSb6qF76F92iEuC/DghFgmPswTyidk8+Hwf+PS/htiJoRQ=="
|
||||||
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "3.8.3",
|
"version": "3.8.3",
|
||||||
"resolved": "https://registry.npm.taobao.org/typescript/download/typescript-3.8.3.tgz?cache=0&sync_timestamp=1593586221215&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftypescript%2Fdownload%2Ftypescript-3.8.3.tgz",
|
"resolved": "https://registry.npm.taobao.org/typescript/download/typescript-3.8.3.tgz?cache=0&sync_timestamp=1593586221215&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftypescript%2Fdownload%2Ftypescript-3.8.3.tgz",
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
"lint": "eslint --fix --ext .ts,.js,.vue ."
|
"lint": "eslint --fix --ext .ts,.js,.vue ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@mdi/font": "^5.3.45",
|
||||||
"@nuxt/typescript-runtime": "^0.4.10",
|
"@nuxt/typescript-runtime": "^0.4.10",
|
||||||
"@nuxtjs/axios": "^5.11.0",
|
"@nuxtjs/axios": "^5.11.0",
|
||||||
"@nuxtjs/proxy": "^2.0.0",
|
"@nuxtjs/proxy": "^2.0.0",
|
||||||
|
@ -19,7 +20,8 @@
|
||||||
"lodash": "^4.17.19",
|
"lodash": "^4.17.19",
|
||||||
"moment": "^2.27.0",
|
"moment": "^2.27.0",
|
||||||
"nuxt": "^2.13.0",
|
"nuxt": "^2.13.0",
|
||||||
"nuxt-typed-vuex": "^0.1.19"
|
"nuxt-typed-vuex": "^0.1.19",
|
||||||
|
"typeface-open-sans": "0.0.75"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxt/typescript-build": "^1.0.3",
|
"@nuxt/typescript-build": "^1.0.3",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue