mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
epic: getting rid of vue -- part 1
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
cf00debb33
commit
63de5fce3c
15 files changed
+53
-420
No files matched your search
@@ -31,7 +31,6 @@ import marked from 'marked'
|
||||
import {readFileSync} from 'fs'
|
||||
import { getStaticPath } from "../../../common/register-static"
|
||||
import { userStore } from "../../../common/user-store"
|
||||
import { tracker } from "../../../common/tracker"
|
||||
|
||||
export default {
|
||||
name: 'WhatsNewPage',
|
||||
@@ -49,9 +48,6 @@ export default {
|
||||
methods: {
|
||||
toLanding: async function() {
|
||||
userStore.saveLastSeenAppVersion();
|
||||
tracker.event("app", "whats-new-seen")
|
||||
|
||||
// await this.$store.dispatch("updateLastSeenAppVersion")
|
||||
this.$router.push({
|
||||
name: "landing-page",
|
||||
}).catch(err => {})
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import "../../common/system-ca"
|
||||
import "./assets/css/app.scss"
|
||||
import "prismjs";
|
||||
import "prismjs/components/prism-yaml"
|
||||
import { PromiseIpc } from 'electron-promise-ipc'
|
||||
import Vue from 'vue'
|
||||
import VueElectron from 'vue-electron'
|
||||
import BootstrapVue from 'bootstrap-vue'
|
||||
import App from './App'
|
||||
import router from './router'
|
||||
@@ -20,7 +17,6 @@ promiseIpc.on('navigate', async (view) => {
|
||||
});
|
||||
|
||||
Vue.config.productionTip = false
|
||||
Vue.use(VueElectron)
|
||||
Vue.use(BootstrapVue)
|
||||
|
||||
Vue.mixin({
|
||||
|
||||
@@ -167,6 +167,14 @@ a {
|
||||
}
|
||||
}
|
||||
|
||||
.drag {
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
|
||||
.nodrag {
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
// app's common loading indicator, displaying on the route transitions
|
||||
#loading {
|
||||
position: absolute;
|
||||
|
||||
@@ -82,6 +82,3 @@ export class App extends React.Component {
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
// run
|
||||
App.init();
|
||||
@@ -0,0 +1,14 @@
|
||||
import "../../common/system-ca"
|
||||
import { userStore } from "../common/user-store";
|
||||
import { workspaceStore } from "../common/workspace-store";
|
||||
import { clusterStore } from "../common/cluster-store";
|
||||
// import { App } from "./components/app";
|
||||
|
||||
await Promise.all([
|
||||
userStore.whenLoaded,
|
||||
workspaceStore.whenLoaded,
|
||||
clusterStore.whenLoaded,
|
||||
]);
|
||||
|
||||
// App.init();
|
||||
document.getElementById("app").innerHTML = "<p>Hello from renderer!</p>"
|
||||
Reference in new issue
Block a user