More stuff

This commit is contained in:
Troplo 2021-04-08 23:17:29 +10:00
parent 3369ee6939
commit d45a5bd9d0
5 changed files with 51 additions and 5 deletions

View File

@ -32,7 +32,8 @@
"vue-nprogress": "^0.2.0",
"vue-router": "^3.2.0",
"vue-socket.io": "^3.0.10",
"vuex": "^3.4.0"
"vuex": "^3.4.0",
"webpack-auto-inject-version": "^1.2.2"
},
"devDependencies": {
"@intlify/vue-i18n-loader": "^1.0.0",

View File

@ -318,7 +318,8 @@
"login": "Login"
},
"info": {
"description": "Your chosen description:"
"description": "Your chosen description:",
"placeholder": "Say something interesting about yourself."
},
"customize": {
"light": "Light",

View File

@ -53,10 +53,10 @@
required>
</b-input>
</b-field>
<b-checkbox v-model="register.agree">{{$t('register.agree')}} <router-link @click="registerModal = false " to="/legal/tos">{{$t('tos')}}</router-link></b-checkbox>
<b-checkbox v-model="register.init.agree">{{$t('register.agree')}} <router-link to="/legal/tos">{{$t('tos')}}</router-link></b-checkbox>
<br>
<div class="buttons">
<b-button class="is-info" @click="doInit" :loading="register.init.loading">{{$t('guided.registration.continue')}}</b-button>
<b-button :disabled="!register.init.agree" class="is-info" @click="doInit" :loading="register.init.loading">{{$t('guided.registration.continue')}}</b-button>
<b-button>{{$t('guided.registration.init.login')}}</b-button>
</div>
</section>
@ -73,7 +73,7 @@
<div class="box">
<form>
<h2 class="subtitle has-text-centered">{{ $t('guided.registration.info.description') }}</h2>
<b-input v-model="register.personal.description" maxlength="256" type="textarea"></b-input>
<b-input v-model="register.personal.description" :placeholder="$t('guided.registration.info.placeholder')" maxlength="256" type="textarea"></b-input>
<b-button class="is-info" @click="doInfo()" :loading="register.personal.loading">{{$t('guided.registration.continue')}}</b-button>
</form>
</div>

39
webpack.conf.js Normal file
View File

@ -0,0 +1,39 @@
var WebpackAutoInject = require('webpack-auto-inject-version');
module.exports = {
plugins: [
new WebpackAutoInject({
// specify the name of the tag in the outputed files eg
// bundle.js: [SHORT] Version: 0.13.36 ...
SHORT: 'Version: 1.0.0-prerelease5',
SILENT: false,
PACKAGE_JSON_PATH: './package.json',
PACKAGE_JSON_INDENT: 4,
components: {
AutoIncreaseVersion: true,
InjectAsComment: true,
InjectByTag: true
},
componentsOptions: {
AutoIncreaseVersion: {
runInWatchMode: false // it will increase version with every single build!
},
InjectAsComment: {
tag: 'Version: {version} - {date}',
dateFormat: 'h:MM:ss TT', // change timezone: `UTC:h:MM:ss` or `GMT:h:MM:ss`
multiLineCommentType: false, // use `/** */` instead of `//` as comment block
},
InjectByTag: {
fileRegex: /\.+/,
// regexp to find [AIV] tag inside html, if you tag contains unallowed characters you can adjust the regex
// but also you can change [AIV] tag to anything you want
AIVTagRegexp: /(\[AIV])(([a-zA-Z{} ,:;!()_@\-"'\\\/])+)(\[\/AIV])/g,
dateFormat: 'h:MM:ss TT'
}
},
LOGS_TEXT: {
AIS_START: 'DEMO AIV started'
}
})
]
}

View File

@ -11729,6 +11729,11 @@ wcwidth@^1.0.1:
dependencies:
defaults "^1.0.3"
webpack-auto-inject-version@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/webpack-auto-inject-version/-/webpack-auto-inject-version-1.2.2.tgz#8fa15f6ea7c4a2a4adcdc5d8b1dc47693dddc971"
integrity sha512-duFSWzZe/OY8zyr2DpymzZeY8yI1RSZ9hu9wDwZy/fhxwntgpEzTwyIB/U7ig+FB26mif8xx5zS1E3Co9c5cYA==
webpack-bundle-analyzer@^3.8.0:
version "3.9.0"
resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.9.0.tgz#f6f94db108fb574e415ad313de41a2707d33ef3c"