Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:imaegoo/twikoo into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
imaegoo committed Sep 8, 2020
2 parents f5a2c84 + 3a5c2a3 commit 5c8b13b
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ A simple, safe, serverless comment system based on Tencent CloudBase (tcb).

## 快速开始 | Quick Start

**此部分尚未完善,请关注后续更新**
**文档尚未完善,请关注后续更新;<br>
如果你想获取更新动态、建言献策、参与内测,欢迎加入内测群:**

![1080829142](https://www.imaegoo.com/gallery/2020/hello-twikoo.png)

1. 注册 https://console.cloud.tencent.com/tcb/
2. 部署云函数
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twikoo",
"version": "0.1.6",
"version": "0.1.7",
"description": "A simple comment system based on Tencent CloudBase (tcb).",
"author": "imaegoo <hello@imaegoo.com> (https://github.com/imaegoo)",
"license": "MIT",
Expand Down
14 changes: 13 additions & 1 deletion src/view/components/TkFooter.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
<template>
<div class="tk-footer">
Powered by <a href="https://github.com/imaegoo/twikoo" target="_blank">Twikoo</a>
v0.1.6
v {{ version }}
</div>
</template>

<script>
import { version } from '../../../package.json'
export default {
data () {
return {
version
}
}
}
</script>

<style scoped>
.tk-footer {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/view/components/TkMetaInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default {
}
.tk-meta-input .el-input {
width: auto;
width: min-content;
width: -webkit-min-content; /* Fix Safari */
flex: 1;
}
.tk-meta-input .el-input + .el-input {
Expand Down
10 changes: 9 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
const path = require('path')
const webpack = require('webpack')
const CopyPlugin = require('copy-webpack-plugin')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const ROOT_PATH = path.resolve(__dirname)
const BUILD_PATH = path.resolve(ROOT_PATH, 'dist')
const version = require('./package.json').version
const banner =
'Twikoo v' + version + '\n' +
'(c) 2020-' + new Date().getFullYear() + ' iMaeGoo\n' +
'Released under the MIT License.\n' +
'Last Update: ' + (new Date()).toLocaleString()

module.exports = {
module: {
Expand All @@ -24,6 +31,7 @@ module.exports = {
libraryTarget: 'umd'
},
plugins: [
new webpack.BannerPlugin(banner),
new CopyPlugin({
patterns: [
{ from: 'public/', to: './' }
Expand All @@ -33,6 +41,6 @@ module.exports = {
],
devServer: {
contentBase: BUILD_PATH,
port: 8080
port: 9820
}
}

0 comments on commit 5c8b13b

Please sign in to comment.