Skip to content

Commit

Permalink
format: Apply Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
dmohns committed Mar 15, 2024
1 parent ab7970d commit b534c22
Show file tree
Hide file tree
Showing 706 changed files with 29,620 additions and 19,873 deletions.
12 changes: 3 additions & 9 deletions Website/ui/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,14 @@
"google": false,
"L": false
},
"extends": [
"eslint:recommended",
"plugin:vue/essential",
"prettier"
],
"extends": ["eslint:recommended", "plugin:vue/essential", "prettier"],
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"vue"
],
"plugins": ["vue"],
"rules": {
"no-unused-vars": ["error", { "varsIgnorePattern": "routes"}],
"no-unused-vars": ["error", { "varsIgnorePattern": "routes" }],
"vue/multi-word-component-names": 0,
"vue/no-mutating-props": 0,
"vue/no-v-text-v-html-on-component": 0,
Expand Down
4 changes: 1 addition & 3 deletions Website/ui/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
presets: ['@vue/cli-plugin-babel/preset'],
}
11 changes: 2 additions & 9 deletions Website/ui/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
"@/*": ["src/*"]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
}
}
45 changes: 28 additions & 17 deletions Website/ui/public/index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>MicroPowerManager</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:200,300,400,300italic|Material+Icons">
<link rel="stylesheet" href="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.css">
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
</head>
<body>

<div id="app"></div>
<!-- built files will be auto injected -->
</body>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title>MicroPowerManager</title>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="//fonts.googleapis.com/css?family=Roboto:200,300,400,300italic|Material+Icons"
/>
<link
rel="stylesheet"
href="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.css"
/>
<script
type="text/javascript"
src="https://www.gstatic.com/charts/loader.js"
></script>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
23 changes: 12 additions & 11 deletions Website/ui/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
<template>
<div>
<component :is="layout">
<router-view/>
<notifications group="notify" position="bottom right" ></notifications>

</component>
</div>
<div>
<component :is="layout">
<router-view />
<notifications
group="notify"
position="bottom right"
></notifications>
</component>
</div>
</template>

<script>
const defaultLayout = 'default'
export default {
name:'App.vue',
name: 'App.vue',
computed: {
layout() {
if (this.$route.meta.layout === defaultLayout) {
return defaultLayout
}
return 'div'
}
},
},
}
</script>
Expand All @@ -31,5 +33,4 @@ export default {
.md-content.md-tabs-content.md-theme-default {
height: 100% !important;
}
</style>
</style>
Loading

0 comments on commit b534c22

Please sign in to comment.