hi troplo
This commit is contained in:
parent
5a2448b4ff
commit
351f3cd981
6 changed files with 45 additions and 450 deletions
26
src/i18n.js
26
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()
|
||||
})
|
||||
|
|
|
@ -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"
|
||||
}
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -15,12 +15,9 @@
|
|||
</section>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
quote: null,
|
||||
}
|
||||
},
|
||||
name: "404"
|
||||
}
|
||||
</script>
|
|
@ -1,166 +1,33 @@
|
|||
<template>
|
||||
<main class="section">
|
||||
<b-modal v-model="postModal">
|
||||
<div class="editor">
|
||||
<editor-menu-bar :editor="editor" v-slot="{ commands, isActive }">
|
||||
<div class="menubar">
|
||||
<div id="forum-thread">
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
:class="{ 'is-active': isActive.bold() }"
|
||||
@click="commands.bold"
|
||||
>
|
||||
<icon name="bold" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
:class="{ 'is-active': isActive.italic() }"
|
||||
@click="commands.italic"
|
||||
>
|
||||
<icon name="italic" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
:class="{ 'is-active': isActive.strike() }"
|
||||
@click="commands.strike"
|
||||
>
|
||||
<icon name="strike" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
:class="{ 'is-active': isActive.underline() }"
|
||||
@click="commands.underline"
|
||||
>
|
||||
<icon name="underline" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
:class="{ 'is-active': isActive.code() }"
|
||||
@click="commands.code"
|
||||
>
|
||||
<icon name="code" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
:class="{ 'is-active': isActive.paragraph() }"
|
||||
@click="commands.paragraph"
|
||||
>
|
||||
<icon name="paragraph" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
:class="{ 'is-active': isActive.heading({ level: 1 }) }"
|
||||
@click="commands.heading({ level: 1 })"
|
||||
>
|
||||
H1
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
:class="{ 'is-active': isActive.heading({ level: 2 }) }"
|
||||
@click="commands.heading({ level: 2 })"
|
||||
>
|
||||
H2
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
:class="{ 'is-active': isActive.heading({ level: 3 }) }"
|
||||
@click="commands.heading({ level: 3 })"
|
||||
>
|
||||
H3
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
:class="{ 'is-active': isActive.bullet_list() }"
|
||||
@click="commands.bullet_list"
|
||||
>
|
||||
<icon name="ul" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
:class="{ 'is-active': isActive.ordered_list() }"
|
||||
@click="commands.ordered_list"
|
||||
>
|
||||
<icon name="ol" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
:class="{ 'is-active': isActive.blockquote() }"
|
||||
@click="commands.blockquote"
|
||||
>
|
||||
<icon name="quote" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
:class="{ 'is-active': isActive.code_block() }"
|
||||
@click="commands.code_block"
|
||||
>
|
||||
<icon name="code" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
@click="commands.horizontal_rule"
|
||||
>
|
||||
<icon name="hr" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
@click="commands.undo"
|
||||
>
|
||||
<icon name="undo" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="menubar__button"
|
||||
@click="commands.redo"
|
||||
>
|
||||
<icon name="redo" />
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</editor-menu-bar>
|
||||
|
||||
<editor-content class="editor__content" :editor="editor" />
|
||||
</div>
|
||||
</b-modal>
|
||||
<h1 class="title">{{thread.name}} <b-tag v-if="thread.locked">Locked</b-tag><b-button @click="replyToThread()"><i class="fas fa-reply-all"></i></b-button></h1>
|
||||
<div class="">
|
||||
<div class="column" v-for='(post) in thread.Posts' :key='"threadPost-" + post.id'>
|
||||
<article class="media box">
|
||||
<figure class="media-left">
|
||||
<p class="image is-64x64">
|
||||
<img :src="'https://cdn.kaverti.com/user/avatars/headshot/' + post.User.picture + '.png'">
|
||||
</p>
|
||||
</figure>
|
||||
<div class="media-content">
|
||||
<div class="content">
|
||||
<p>
|
||||
<strong>{{post.User.username}}</strong> <small>{{ post.createdAt | formatDate }}</small>
|
||||
<br>
|
||||
<p>
|
||||
<div v-html="post.content"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="media-right">
|
||||
<b-button @click="replyToPost(post)"><i class="fas fa-reply"></i></b-button>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
<!-- <main class="section">-->
|
||||
<!-- <h1 class="title">{{thread.name}} <b-tag v-if="thread.locked">Locked</b-tag><b-button @click="replyToThread()"><i class="fas fa-reply-all"></i></b-button></h1>-->
|
||||
<!-- <div class="">-->
|
||||
<!-- <div class="column" v-for='(post) in thread.Posts' :key='"threadPost-" + post.id'>-->
|
||||
<!-- <article class="media box">-->
|
||||
<!-- <figure class="media-left">-->
|
||||
<!-- <p class="image is-64x64">-->
|
||||
<!-- <img :src="'https://cdn.kaverti.com/user/avatars/headshot/' + post.User.picture + '.png'">-->
|
||||
<!-- </p>-->
|
||||
<!-- </figure>-->
|
||||
<!-- <div class="media-content">-->
|
||||
<!-- <div class="content">-->
|
||||
<!-- <p>-->
|
||||
<!-- <strong>{{post.User.username}}</strong> <small>{{ post.createdAt | formatDate }}</small>-->
|
||||
<!-- <br>-->
|
||||
<!-- <p>-->
|
||||
<!-- <div v-html="post.content"></div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="media-right">-->
|
||||
<!-- <b-button @click="replyToPost(post)"><i class="fas fa-reply"></i></b-button>-->
|
||||
<!-- </div>-->
|
||||
<!-- </article>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </main>-->
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -229,7 +96,7 @@ export default {
|
|||
|
||||
},
|
||||
replyToPost(post) {
|
||||
post
|
||||
this.postModal = true;
|
||||
},
|
||||
getThread(initial) {
|
||||
this.loading = true
|
||||
|
|
|
@ -1,66 +0,0 @@
|
|||
const Dotenv = require('dotenv-webpack');
|
||||
var WebpackAutoInject = require('webpack-auto-inject-version');
|
||||
const fs = require("fs");
|
||||
|
||||
module.exports = {
|
||||
devServer: {
|
||||
proxy: 'http://localhost:23981',
|
||||
//disableHostCheck: true, // dev.kaverti.flowinity
|
||||
//host: 'dev.kaverti.flowinity',
|
||||
/*
|
||||
https: {
|
||||
cert: fs.readFileSync('C:/ssl/troplo/certificate.crt'),
|
||||
key: fs.readFileSync('C:/ssl/troplo/private.key'),
|
||||
}
|
||||
*/
|
||||
},
|
||||
|
||||
publicPath: '/',
|
||||
productionSourceMap: false,
|
||||
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
new Dotenv(),
|
||||
new WebpackAutoInject({
|
||||
// specify the name of the tag in the outputed files eg
|
||||
// bundle.js: [SHORT] Version: 0.13.36 ...
|
||||
SHORT: 'Kaverti AIV',
|
||||
SILENT: false,
|
||||
PACKAGE_JSON_PATH: './package.json',
|
||||
PACKAGE_JSON_INDENT: 4,
|
||||
components: {
|
||||
AutoIncreaseVersion: true,
|
||||
InjectAsComment: true,
|
||||
InjectByTag: true
|
||||
},
|
||||
componentsOptions: {
|
||||
AutoIncreaseVersion: {
|
||||
runInWatchMode: true // it will increase version with every single build!
|
||||
},
|
||||
InjectAsComment: {
|
||||
tag: 'Kaverti Version: {version}, Build Date: {date}',
|
||||
dateFormat: 'dd/mm/yyyy; hh:MM:ss TT', // change timezone: `UTC:h:MM:ss` or `GMT:h:MM:ss`
|
||||
multiLineCommentType: false, // use `/** */` instead of `//` as comment block
|
||||
},
|
||||
InjectByTag: {
|
||||
fileRegex: /\.+/,
|
||||
AIVTagRegexp: /(\[AIV])(([a-zA-Z{} ,:;!()_@\-"'\\\/])+)(\[\/AIV])/g,
|
||||
dateFormat: 'dd/mm/yyyy; hh:MM:ss TT'
|
||||
}
|
||||
},
|
||||
LOGS_TEXT: {
|
||||
AIS_START: 'Kaverti AIV started'
|
||||
}
|
||||
})
|
||||
]
|
||||
},
|
||||
|
||||
pluginOptions: {
|
||||
i18n: {
|
||||
locale: 'en',
|
||||
fallbackLocale: 'debug',
|
||||
localeDir: 'locales',
|
||||
enableInSFC: false
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue