2021-11-12 09:13:22 +00:00
|
|
|
// <script lang="ts">
|
|
|
|
// import { Options, Vue } from "vue-class-component";
|
|
|
|
// import HelloWorld from "./components/HelloWorld/HelloWorld.vue";
|
|
|
|
// import VsInput from "./components/vs-input/vs-input.vue";
|
|
|
|
|
|
|
|
// @Options({
|
|
|
|
// components: {
|
|
|
|
// HelloWorld,
|
|
|
|
// VsInput,
|
|
|
|
// },
|
|
|
|
// })
|
|
|
|
// export default class App extends Vue {
|
|
|
|
// async onSearch(term: string): Promise<void> {
|
|
|
|
// if (term) {
|
|
|
|
// term = term.trim();
|
|
|
|
// } else {
|
|
|
|
// term = "*%3A*";
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// </script>
|
|
|
|
|
|
|
|
|
|
|
|
npm install -g @vue/cli
|
|
|
|
|
|
|
|
vue --version
|
|
|
|
@vue/cli 4.5.15
|
|
|
|
|
|
|
|
|
|
|
|
npm install --save rxjs
|
|
|
|
|
|
|
|
|
|
|
|
npm install bulma --save-dev
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
npm install --save @openfonts/open-sans_all
|
|
|
|
|
|
|
|
|
|
|
|
vue inspect > out.js
|
|
|
|
|
2021-11-12 14:49:27 +00:00
|
|
|
npm install --save qs
|
|
|
|
|
2021-11-22 14:53:10 +00:00
|
|
|
npm install --save class-transformer
|
|
|
|
|
2021-11-24 15:01:53 +00:00
|
|
|
===== font-awsome =============================================
|
2021-11-22 14:53:10 +00:00
|
|
|
|
|
|
|
npm install --save @fortawesome/vue-fontawesome@prerelease
|
|
|
|
npm install --save @fortawesome/fontawesome-svg-core
|
2021-11-23 16:30:19 +00:00
|
|
|
npm install --save @fortawesome/free-solid-svg-icons
|
|
|
|
|
2021-11-24 15:01:53 +00:00
|
|
|
besser:
|
|
|
|
npm install --save @fortawesome/fontawesome-free
|
|
|
|
inside main.ts:
|
|
|
|
import "@fortawesome/fontawesome-free/css/all.css";
|
|
|
|
|
2021-11-23 16:30:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
======================= router ================================
|
|
|
|
https://www.vuemastery.com/blog/vue-router-a-tutorial-for-vue-3/
|
2021-12-13 16:01:40 +00:00
|
|
|
npm install --save vue-router@next
|
|
|
|
|
|
|
|
========================== moment,js ================================
|
|
|
|
npm install --save moment@latest
|
|
|
|
|
2022-01-11 11:43:51 +00:00
|
|
|
|
|
|
|
==================== matomo tracking ==========================
|
|
|
|
npm install --save vue-matomo
|
|
|
|
|
2022-01-25 16:22:44 +00:00
|
|
|
declare module 'vue-matomo'; inside shims-vue.d.ts
|
|
|
|
|
|
|
|
======================== leaflet ==========================
|
|
|
|
npm install --save leaflet@latest
|
|
|
|
npm install --save-dev @types/leaflet
|
|
|
|
|
2022-01-26 15:32:19 +00:00
|
|
|
http://geolba.net/tethys/
|
|
|
|
|
|
|
|
|
2022-01-28 15:30:34 +00:00
|
|
|
======================== dayjs ==========================================================
|
2022-01-26 15:32:19 +00:00
|
|
|
npm install --save dayjs
|
|
|
|
https://day.js.org/docs/en/installation/typescript
|
|
|
|
|
2022-01-28 15:30:34 +00:00
|
|
|
https://www.programmerall.com/article/19972027526/
|
|
|
|
|
|
|
|
|
|
|
|
======================== xml2js ==========================================================
|
|
|
|
npm install --save xml2js
|
2022-05-31 14:37:41 +00:00
|
|
|
npm i --save-dev @types/xml2js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
============================== upgrade cli-Service =========================================
|
|
|
|
|
|
|
|
https://cli.vuejs.org/migrations/migrate-from-v4.html
|
|
|
|
|
|
|
|
vue --version
|
|
|
|
@vue/cli 5.0.4
|
|
|
|
|
|
|
|
vue upgrade
|
|
|
|
continue to upgrade these plugins?
|
|
|
|
Name Installed Wanted Latest Command to upgrade
|
|
|
|
@vue/cli-service 4.5.17 4.5.17 5.0.4 vue upgrade @vue/cli-service
|
|
|
|
@vue/cli-plugin-babel 4.5.17 4.5.17 5.0.4 vue upgrade @vue/cli-plugin-babel
|
|
|
|
@vue/cli-plugin-eslint 4.5.17 4.5.17 5.0.4 vue upgrade @vue/cli-plugin-eslint
|
|
|
|
@vue/cli-plugin-typescript 4.5.17 4.5.17 5.0.4 vue upgrade @vue/cli-plugin-typescript
|
|
|
|
|
|
|
|
npm install --save-dev node-polyfill-webpack-plugin
|
|
|
|
|
|
|
|
vue.config.js:
|
|
|
|
1.
|
|
|
|
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
|
|
|
|
2.
|
|
|
|
// devServer: {
|
|
|
|
// disableHostCheck: true,
|
|
|
|
// },
|
|
|
|
3.
|
|
|
|
configureWebpack: {
|
|
|
|
plugins: [
|
|
|
|
new webpack.DefinePlugin({
|
|
|
|
VUE_APP_PORTAL: JSON.stringify(process.env.VUE_APP_PORTAL),
|
|
|
|
SOLR_HOST: JSON.stringify(process.env.SOLR_HOST),
|
|
|
|
SOLR_CORE: JSON.stringify(process.env.SOLR_CORE),
|
|
|
|
}),
|
|
|
|
new NodePolyfillPlugin(),
|
|
|
|
],
|
|
|
|
|
|
|
|
============================ eslint ===========================================
|
|
|
|
https://dev-yakuza.posstree.com/en/react-native/eslint-prettier-husky-lint-staged/
|
2022-06-01 15:14:36 +00:00
|
|
|
https://prettier.io/docs/en/cli.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================== xslt3
|
|
|
|
npm install xslt3 --save
|