small updates
This commit is contained in:
@@ -6,5 +6,8 @@ module.exports = {
|
|||||||
extends: ['plugin:vue/vue3-essential', 'eslint:recommended', '@vue/eslint-config-prettier'],
|
extends: ['plugin:vue/vue3-essential', 'eslint:recommended', '@vue/eslint-config-prettier'],
|
||||||
env: {
|
env: {
|
||||||
'vue/setup-compiler-macros': true
|
'vue/setup-compiler-macros': true
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
'vue/multi-word-component-names': 'off'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM node:16-slim
|
FROM node:16-slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm ci
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build --modern
|
RUN npm run build
|
||||||
CMD ["node", "server"]
|
CMD ["node", "server"]
|
||||||
@@ -37,7 +37,8 @@ export default {
|
|||||||
try {
|
try {
|
||||||
const [start, end] = [window.value.getStart(), window.value.getEnd()]
|
const [start, end] = [window.value.getStart(), window.value.getEnd()]
|
||||||
const sample = Math.round((end - start) / 60 / 288) || 1
|
const sample = Math.round((end - start) / 60 / 288) || 1
|
||||||
const host = process.env.NODE_ENV === 'development' ? 'http://localhost:3000' : ''
|
console.log(import.meta.env.MODE)
|
||||||
|
const host = import.meta.env.MODE === 'development' ? 'http://localhost:3000' : ''
|
||||||
const fetchUrl = `${host}/type/${typeApi[type.value]}/startDate/${start}/endDate/${end}/sample/${sample}`
|
const fetchUrl = `${host}/type/${typeApi[type.value]}/startDate/${start}/endDate/${end}/sample/${sample}`
|
||||||
const response = await fetch(fetchUrl)
|
const response = await fetch(fetchUrl)
|
||||||
data.value = await response.json()
|
data.value = await response.json()
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ export default {
|
|||||||
const currentRoute = router.currentRoute
|
const currentRoute = router.currentRoute
|
||||||
if (currentRoute.value.params.type) type.value = currentRoute.value.params.type
|
if (currentRoute.value.params.type) type.value = currentRoute.value.params.type
|
||||||
if (currentRoute.value.params.window) window.value = { label: currentRoute.value.params.window }
|
if (currentRoute.value.params.window) window.value = { label: currentRoute.value.params.window }
|
||||||
console.log(type.value, window.value)
|
|
||||||
const updateRoute = () => {
|
const updateRoute = () => {
|
||||||
if (type.value) {
|
if (type.value) {
|
||||||
const route = {
|
const route = {
|
||||||
|
|||||||
Reference in New Issue
Block a user