Skip to content

Commit

Permalink
Fixes, favicon, title
Browse files Browse the repository at this point in the history
  • Loading branch information
boreq committed Oct 24, 2023
1 parent a38df6b commit 5fa5312
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 15 deletions.
1 change: 1 addition & 0 deletions frontend/nos-crossposting-service-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"core-js": "^3.8.3",
"vue": "^3.2.13",
"vue-class-component": "^8.0.0-0",
"vue-property-decorator": "^9.1.2",
"vue-router": "^4.0.3",
"vuex": "^4.0.0"
},
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<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><%= htmlWebpackPlugin.options.title %></title>
<title>X Connect</title>
</head>
<body>
<noscript>
Expand Down
15 changes: 12 additions & 3 deletions frontend/nos-crossposting-service-frontend/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
</template>

<script lang="ts">
import {Watch} from 'vue-property-decorator'
import {Options, Vue} from 'vue-class-component';
import {useStore} from "vuex";
import Explanation from '@/components/Explanation.vue';
Expand Down Expand Up @@ -91,8 +92,13 @@ export default class HomeView extends Vue {
return this.loadingUser || !this.user;
}
created() {
this.reloadPublicKeys();
@Watch('user')
watchUser(oldUser: CurrentUser, newUser: CurrentUser): void {
if (newUser) {
this.reloadPublicKeys();
} else {
this.publicKeys = {publicKeys: []};
}
}
addPublicKey(): void {
Expand All @@ -112,7 +118,10 @@ export default class HomeView extends Vue {
.then(response => {
this.publicKeys = response.data;
})
.catch(() => {
.catch(error => {
if (error.response && error.response.status === 401) {
return;
}
this.store.commit(Mutation.PushNotificationError, "Error loading the public keys.");
});
}
Expand Down
5 changes: 5 additions & 0 deletions frontend/nos-crossposting-service-frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6193,6 +6193,11 @@ vue-loader@^17.0.0:
hash-sum "^2.0.0"
watchpack "^2.4.0"

vue-property-decorator@^9.1.2:
version "9.1.2"
resolved "https://registry.yarnpkg.com/vue-property-decorator/-/vue-property-decorator-9.1.2.tgz#266a2eac61ba6527e2e68a6933cfb98fddab5457"
integrity sha512-xYA8MkZynPBGd/w5QFJ2d/NM0z/YeegMqYTphy7NJQXbZcuU6FC6AOdUAcy4SXP+YnkerC6AfH+ldg7PDk9ESQ==

vue-router@^4.0.3:
version "4.2.5"
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.2.5.tgz#b9e3e08f1bd9ea363fdd173032620bc50cf0e98a"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified service/ports/http/frontend/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion service/ports/http/frontend/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>nos-crossposting-service-frontend</title><script defer="defer" src="/js/chunk-vendors.96fa04b3.js"></script><script defer="defer" src="/js/app.04629379.js"></script><link href="/css/app.c9cc9387.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but nos-crossposting-service-frontend doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>X Connect</title><script defer="defer" src="/js/chunk-vendors.53f93b5d.js"></script><script defer="defer" src="/js/app.6154432e.js"></script><link href="/css/app.61669bce.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but nos-crossposting-service-frontend doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
2 changes: 0 additions & 2 deletions service/ports/http/frontend/js/app.04629379.js

This file was deleted.

1 change: 0 additions & 1 deletion service/ports/http/frontend/js/app.04629379.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions service/ports/http/frontend/js/app.6154432e.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions service/ports/http/frontend/js/app.6154432e.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

0 comments on commit 5fa5312

Please sign in to comment.