From 351f3cd98126090eded4ae7b8ffff06f3b0b8a94 Mon Sep 17 00:00:00 2001 From: Bytetrex Date: Sun, 11 Apr 2021 14:34:56 +0800 Subject: [PATCH] hi troplo --- src/i18n.js | 26 ++--- src/locales/wind.json | 203 -------------------------------------- src/main.js | 2 +- src/views/404.vue | 7 +- src/views/ForumThread.vue | 191 ++++++----------------------------- vue.config.example.js | 66 ------------- 6 files changed, 45 insertions(+), 450 deletions(-) delete mode 100644 src/locales/wind.json delete mode 100644 vue.config.example.js diff --git a/src/i18n.js b/src/i18n.js index 04195c4..668a5d5 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -3,20 +3,20 @@ import VueI18n from 'vue-i18n' Vue.use(VueI18n) -function loadLocaleMessages () { - const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.json$/i) - const messages = {} - locales.keys().forEach(key => { - const matched = key.match(/([A-Za-z0-9-_]+)\./i) - if (matched && matched.length > 1) { - const locale = matched[1] - messages[locale] = locales(key) - } - }) - return messages +function loadLocaleMessages() { + const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.json$/i) + const messages = {} + locales.keys().forEach(key => { + const matched = key.match(/([A-Za-z0-9-_]+)\./i) + if (matched && matched.length > 1) { + const locale = matched[1] + messages[locale] = locales(key) + } + }) + return messages } export default new VueI18n({ - locale: process.env.VUE_APP_I18N_LOCALE || 'en', - messages: loadLocaleMessages() + locale: process.env.VUE_APP_I18N_LOCALE || 'en', + messages: loadLocaleMessages() }) diff --git a/src/locales/wind.json b/src/locales/wind.json deleted file mode 100644 index a1d2f38..0000000 --- a/src/locales/wind.json +++ /dev/null @@ -1,203 +0,0 @@ -{ - "404": { - "title": "systemctl start httpd??", - "text": "Error 521 Ray ID: 4f3226667865dc3b how to fix", - "quoteText": "There is currently 2900 WIND quotes available", - "windQuote": "without https works", - "home": "£1m" - }, - "login": { - "title": "dont tell anyone the new domain", - "login": "im never firing you btw your my best friend xzd xd", - "loginPassword": "I mean cyrex would still have the £75 but I'll give user it back bit by bit", - "loginUsername": "u wanna help now?", - "doNotSaveAuth": "yo yo", - "register": "Don't have an account?" - }, - "register": { - "title": "no I am not, I am wlnd, aka Alex", - "text": "i just need the phpmyadmin login details", - "username": "honestly go fuck yourself", - "email": "this is fucking dumb", - "password": "would mind doing me a favour", - "confirm": "dont tell anyone", - "login": "can i get my twitter handle back lol", - "agree": "Price has been reduced to £10 " - }, - "teams": { - "createTeam": "Create Team", - "joinTeam": "Join Team", - "join": "Join", - "invite": "Invite", - "viewPermissions": "View role permissions", - "devBanner": "Teams are currently in development, expect missing features.", - "view": "View", - "viewTeam": "View Team", - "memberRoles": "Members and Roles", - "members": "Members", - "roles": "Roles", - "items": "Created Items", - "foundedAt": "Team was founded at", - "teamWall": "Team Wall", - "teamWallText": "'s Team Wall", - "verified": "Verified Team", - "admin": { - "text": "Team Administration", - "nav": { - "general": "General", - "roles": "Roles", - "members": "Members", - "privacy": "Privacy", - "invites": "Invites", - "forum": "Forum", - "verification": "Verification" - }, - "general": { - "title": "General", - "name": "Name", - "description": "Description", - "saveTeam": "Save Team", - "modifyPicture": "Modify Team avatar" - }, - "roles": { - "title": "Roles", - "addRole": "Add Role", - "saveOrder": "Save role order", - "modifying": "Modifying", - "name": "Chosen role name", - "permissions": "Permissions", - "creating": "Creating a role" - }, - "members": { - "title": "Members", - "modifyRoles": "Modify user roles", - "removeAllRoles": "Remove all roles from user" - }, - "privacy": { - "title": "Team Privacy", - "teamWall": "Opt out of team walls", - "disallowForum": "Disallow anyone from viewing/creating on your Team Forum" - }, - "invites": { - "title": "Invites", - "code": "Code", - "uses": "Uses", - "maxUses": "Max Uses", - "createdBy": "Created by", - "date": "Date", - "delete": "Delete selected", - "generate": "Generate invite" - }, - "invite": { - "title": "Invite people to", - "amountUses": "Amount of uses (0 is Unlimited)", - "role": "Please select a role for the user to be auto assigned (optional)", - "refresh": "Refresh", - "inviteURL": "Invite URL", - "domain": "https://kaverti.com/invite/" - } - }, - "permissionTypes": { - "inviteUsers": "Invite users", - "administrator": "Administrator", - "modifyRoles": "Modify roles/permissions/users", - "modifyTeamSettings": "Modify team settings", - "teamForum": "Modify team forum configuration", - "forumModerator": "Forum moderation permissions", - "forumAdmin": "Forum administrator", - "submitMarketplace": "Submit Marketplace items", - "priorityValue": "Set priority value" - } - }, - "navbar": { - "home": "ok £50 extra", - "forums": "can u fix that for £10 extra", - "marketplace": "£30 Its the last thing im asking for troplo.", - "downloads": "dont tell anyone who i am here", - "games": "have u seen bloxtopia's games", - "users": "as i was not payed yet", - "teams": "leave me alone", - "dev": { - "title": "i might come back to development", - "fakeUser": "user : root", - "debug": "fixed the hta" - }, - "user": { - "title": "Unknown", - "profile": "My Profile", - "creations": "My Creations", - "downloads": "Downloads", - "avatar": "My Avatar", - "transactions": "Transactions", - "settings": "Settings", - "logout": "Logout" - }, - "more": { - "title": "a", - "twitter": "Twitter", - "discord": "Discord", - "roadmap": "Roadmap", - "documentation": "API Docs", - "stats": "Kaverti Stats" - }, - "register": "u got the .net?", - "login": "/phpmyadmin" - }, - "debug": { - "title": "Debug mode enabled", - "authUser": "Authenticated user", - "state": "State dump", - "userState": "User state dump", - "token": "Auth token in state", - "disable": "Disable debug options", - "auth": "Test authentication" - }, - "errors": { - "authFail": "i control the files", - "devBuild": "ok so i put this and it instantly redirects to unbale", - "disableDebug": "Debug mode disabled, you will no longer have access to development features until you refresh.", - "authSuccess": "Request successful, your token is valid, and the Kaverti server instance is running correctly." - }, - "user": { - "title": "Loading", - "about": "About", - "more": "More of", - "posts": "Posts", - "threads": "Threads", - "inventory": "Inventory", - "awards": "Awards", - "items": "Items", - "wall": "User Wall", - "description": "Description", - "created": "Registered at" - }, - "stats": { - "title": "Stats", - "users": "Registered users", - "purchased": "Purchased items", - "items": "Uploaded items", - "posts": "Forum posts", - "threads": "Threads", - "teams": "Teams" - }, - "settings": { - "title": "User Settings", - "general": { - "title": "General" - }, - "security": { - "title": "Security" - } - }, - "languages": { - "title": "(Locale Select) can you put out an announcement on the kaverti server", - "en": "(English) ill pay extra with the tet domain if u do £50 infact £100", - "wind": "(Windspeak) are you having a bubble", - "debug": "(Debug) hello mr trooooplooo" - }, - "currency": "fuck you", - "close": "I've just told the full truth to logan", - "tos": "get the fuck over it, it was never a scam", - "gotIt": "that is wind for you", - "errorModalTitle": "{INSERT PHP ERROR} We'll you are getting paid alot" -} \ No newline at end of file diff --git a/src/main.js b/src/main.js index 735300d..a450c67 100644 --- a/src/main.js +++ b/src/main.js @@ -13,7 +13,7 @@ import enUS from "@kangc/v-md-editor/lib/lang/en-US"; import createHljsTheme from "@kangc/v-md-editor/lib/theme/hljs"; import json from "highlight.js/lib/languages/json"; const hljsTheme = createHljsTheme(); -import io from "socket.io-client" +import io from "socket.io-client"; import VueSocketIO from "vue-socket.io"; import NProgress from "vue-nprogress"; diff --git a/src/views/404.vue b/src/views/404.vue index 9a98a57..277e35c 100644 --- a/src/views/404.vue +++ b/src/views/404.vue @@ -15,12 +15,9 @@ + \ No newline at end of file diff --git a/src/views/ForumThread.vue b/src/views/ForumThread.vue index 7c1a2e7..478b2e9 100644 --- a/src/views/ForumThread.vue +++ b/src/views/ForumThread.vue @@ -1,166 +1,33 @@