mirror of
https://github.com/BioArchLinux/Rosa.git
synced 2025-03-10 12:02:43 +00:00
follow standardjs linter things
This commit is contained in:
parent
403d260b91
commit
da08879c03
3 changed files with 12 additions and 3 deletions
|
@ -21,5 +21,14 @@
|
||||||
"moment": "^2.29.4",
|
"moment": "^2.29.4",
|
||||||
"vue": "^3.3.4",
|
"vue": "^3.3.4",
|
||||||
"vue-router": "^4.2.2"
|
"vue-router": "^4.2.2"
|
||||||
|
},
|
||||||
|
"standard": {
|
||||||
|
"globals": [
|
||||||
|
"__WEBSITE_BASE__",
|
||||||
|
"__API_BASE__"
|
||||||
|
],
|
||||||
|
"ignore": [
|
||||||
|
"vite.config.js"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { createRouter, createWebHistory } from "vue-router"
|
import { createRouter, createWebHistory } from 'vue-router'
|
||||||
|
|
||||||
import Index from './views/Index.vue'
|
import Index from './views/Index.vue'
|
||||||
import Package from './views/Package.vue'
|
import Package from './views/Package.vue'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const DATA_UNIT_FACTOR = 1024
|
const DATA_UNIT_FACTOR = 1024
|
||||||
|
|
||||||
export function calculateSize(size) {
|
export function calculateSize (size) {
|
||||||
function wellSized(num) {
|
function wellSized (num) {
|
||||||
return num > 1 && num < DATA_UNIT_FACTOR
|
return num > 1 && num < DATA_UNIT_FACTOR
|
||||||
}
|
}
|
||||||
if (size === undefined) { return }
|
if (size === undefined) { return }
|
||||||
|
|
Loading…
Add table
Reference in a new issue