"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-ts": "^3.0.2",
"ts-node": "^10.9.1",
- "typescript": "^4.7.4"
+ "typescript": "^4.8.2"
},
"engines": {
"node": ">=16.0.0",
}
},
"node_modules/typescript": {
- "version": "4.7.4",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
- "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
+ "version": "4.8.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz",
+ "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
}
},
"typescript": {
- "version": "4.7.4",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
- "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
+ "version": "4.8.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz",
+ "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==",
"dev": true
},
"ua-parser-js": {
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-ts": "^3.0.2",
"ts-node": "^10.9.1",
- "typescript": "^4.7.4"
+ "typescript": "^4.8.2"
}
}
'basic-ftp',
'chalk',
'crypto',
- 'express',
'fs',
'mnemonist/lru-map-with-delete',
'moment',
For both solution you can then follow the link displayed in the terminal at the end of compilation
-#### Compiles and run without development tools
+#### Compiles and run for production
```
npm start
```
-#### Compiles and hot-reloads for development
+#### Compiles and run for development
```
npm run serve
```
npm run lint
```
-
-### Customize configuration
-
-See [Configuration Reference](https://cli.vuejs.org/config/).
"eslint-plugin-vue": "^9.4.0",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
- "typescript": "~4.7.4",
+ "typescript": "^4.8.2",
"vue-eslint-parser": "^9.0.3"
}
},
}
},
"node_modules/typescript": {
- "version": "4.7.4",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
- "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
+ "version": "4.8.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz",
+ "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
}
},
"typescript": {
- "version": "4.7.4",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
- "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
+ "version": "4.8.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz",
+ "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==",
"dev": true
},
"unbzip2-stream": {
"eslint-plugin-vue": "^9.4.0",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
- "typescript": "~4.7.4",
+ "typescript": "^4.8.2",
"vue-eslint-parser": "^9.0.3"
},
"_id": "webui@0.1.0",
async function load(): Promise<void> {
if (state.isLoading === true) return;
state.isLoading = true;
- const list = await UIClientInstance.listChargingStations();
- state.chargingStations = list as unknown as Record<string, ChargingStationData>;
+ const chargingStationsList = await UIClientInstance.listChargingStations();
+ state.chargingStations = chargingStationsList as unknown as Record<string, ChargingStationData>;
state.isLoading = false;
}
serveStatic = require('serve-static');
const PORT = process.env.PORT || 3030,
- uiPath = path.join(__dirname, './dist/');
+ uiPath = path.join(__dirname, './dist');
const serve = serveStatic(uiPath);
serve(req, res, finalhandler(req, res));
});
-server.listen(PORT, () => console.info(`http://localhost:${PORT}`));
+server.listen(PORT, () => console.info(`App running at: http://localhost:${PORT}`));