Compare commits

..

No commits in common. "ururu" and "master" have entirely different histories.

7 changed files with 196 additions and 762 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

927
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -9,7 +9,6 @@
}, },
"dependencies": { "dependencies": {
"axios": "^0.21.1", "axios": "^0.21.1",
"chokidar": "^4.0.1",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"css-polyfills": "0.0.16", "css-polyfills": "0.0.16",
"emoji-js": "^3.5.0", "emoji-js": "^3.5.0",
@ -19,10 +18,10 @@
"splitpanes": "^3.0.4", "splitpanes": "^3.0.4",
"string-strip-html": "^8.3.0", "string-strip-html": "^8.3.0",
"vue": "^3.1.1", "vue": "^3.1.1",
"vue-html2pdf": "^1.8.0",
"vue-router": "^4.0.8", "vue-router": "^4.0.8",
"vue3-markdown-it": "^1.0.9", "vue3-markdown-it": "^1.0.9",
"vuex": "^4.0.1" "vuex": "^4.0.1",
"vue-html2pdf": "^1.8.0"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-babel": "~4.5.0",

View file

@ -56,11 +56,11 @@ export default {
c = c.replaceAll('src="', 'src="' + url); c = c.replaceAll('src="', 'src="' + url);
c = c.replaceAll('href="/', 'href="' + url + "/"); c = c.replaceAll('href="/', 'href="' + url + "/");
// replace it with the mirror domain for uploads // replace it with the mirror domain for uploads
// replace this: https://zulip.ururu.cloud/user_uploads/ // replace this: https://chat.hackersanddesigners.nl/user_uploads/
// with this: https://chatty-pub-files.ururu.cloud/files/ // with this: https://chatty-pub-files.hackersanddesigners.nl/files/
c = c.replaceAll( c = c.replaceAll(
url + "/user_uploads/", url + "/user_uploads/",
"https://chatty-pub-files.ururu.cloud/files/" "https://chatty-pub-files.hackersanddesigners.nl/files/"
); );
c = this.replaceAllEmojiCodes(c); c = this.replaceAllEmojiCodes(c);

View file

@ -62,7 +62,7 @@ let font = (content) => {
let filename = getFilename(path); let filename = getFilename(path);
let ext = filename.split(".").pop(); let ext = filename.split(".").pop();
font.src = font.src =
"https://chatty-pub-files.ururu.cloud/files" + path; "https://chatty-pub-files.hackersanddesigners.nl/files" + path;
font.format = getFormat(ext); font.format = getFormat(ext);
font.family = filename.replace(".", "_"); font.family = filename.replace(".", "_");
return font; return font;
@ -260,7 +260,7 @@ export default createStore({
[...state.topics] [...state.topics]
.filter(t => ( .filter(t => (
t.messages.length > 0 && t.messages.length > 0 &&
t.title != 'channel events' t.title != 'stream events'
)) ))
), ),

View file

@ -13,17 +13,4 @@ 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,
},
} }