adaption
This commit is contained in:
parent
f86b6936d2
commit
40f47849b5
7 changed files with 762 additions and 196 deletions
2
dist/js/app.0f10b80e.js
vendored
Normal file
2
dist/js/app.0f10b80e.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/app.0f10b80e.js.map
vendored
Normal file
1
dist/js/app.0f10b80e.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
927
package-lock.json
generated
927
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -9,6 +9,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.21.1",
|
||||
"chokidar": "^4.0.1",
|
||||
"core-js": "^3.6.5",
|
||||
"css-polyfills": "0.0.16",
|
||||
"emoji-js": "^3.5.0",
|
||||
|
|
@ -18,10 +19,10 @@
|
|||
"splitpanes": "^3.0.4",
|
||||
"string-strip-html": "^8.3.0",
|
||||
"vue": "^3.1.1",
|
||||
"vue-html2pdf": "^1.8.0",
|
||||
"vue-router": "^4.0.8",
|
||||
"vue3-markdown-it": "^1.0.9",
|
||||
"vuex": "^4.0.1",
|
||||
"vue-html2pdf": "^1.8.0"
|
||||
"vuex": "^4.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "~4.5.0",
|
||||
|
|
|
|||
|
|
@ -56,11 +56,11 @@ export default {
|
|||
c = c.replaceAll('src="', 'src="' + url);
|
||||
c = c.replaceAll('href="/', 'href="' + url + "/");
|
||||
// replace it with the mirror domain for uploads
|
||||
// replace this: https://chat.hackersanddesigners.nl/user_uploads/
|
||||
// with this: https://chatty-pub-files.hackersanddesigners.nl/files/
|
||||
// replace this: https://zulip.ururu.cloud/user_uploads/
|
||||
// with this: https://chatty-pub-files.ururu.cloud/files/
|
||||
c = c.replaceAll(
|
||||
url + "/user_uploads/",
|
||||
"https://chatty-pub-files.hackersanddesigners.nl/files/"
|
||||
"https://chatty-pub-files.ururu.cloud/files/"
|
||||
);
|
||||
|
||||
c = this.replaceAllEmojiCodes(c);
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ let font = (content) => {
|
|||
let filename = getFilename(path);
|
||||
let ext = filename.split(".").pop();
|
||||
font.src =
|
||||
"https://chatty-pub-files.hackersanddesigners.nl/files" + path;
|
||||
"https://chatty-pub-files.ururu.cloud/files" + path;
|
||||
font.format = getFormat(ext);
|
||||
font.family = filename.replace(".", "_");
|
||||
return font;
|
||||
|
|
@ -260,7 +260,7 @@ export default createStore({
|
|||
[...state.topics]
|
||||
.filter(t => (
|
||||
t.messages.length > 0 &&
|
||||
t.title != 'stream events'
|
||||
t.title != 'channel events'
|
||||
))
|
||||
),
|
||||
|
||||
|
|
|
|||
|
|
@ -13,4 +13,17 @@ module.exports = {
|
|||
],
|
||||
},
|
||||
},
|
||||
devServer: {
|
||||
host: '0.0.0.0',
|
||||
allowedHosts: ['.ururu.cloud'],
|
||||
headers: {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
|
||||
"Access-Control-Allow-Headers": "X-Requested-With, content-type, Authorization"
|
||||
},
|
||||
host: '0.0.0.0',
|
||||
sockHost: "chatty-pub.ururu.cloud",
|
||||
sockPath: "/ws",
|
||||
sockPort: 8080,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue