fix(config): clean up configs and workflows

This commit is contained in:
hexxa 2022-04-02 17:03:59 +08:00 committed by Hexxa
parent 2f6aa33108
commit 4de972cb11
10 changed files with 15 additions and 62 deletions

View file

@ -156,7 +156,7 @@ export class RootFrame extends React.Component<Props, State, {}> {
<div id="tail" className="container-center">
<a href="https://github.com/ihexxa/quickshare">Quickshare</a> -
quick and simple file sharing.
Quick and simple file sharing.
</div>
</div>
</div>

View file

@ -4,20 +4,21 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
const prod = require("./webpack.prod.js");
module.exports = merge(prod, {
entry: "./src/app.tsx",
entry: ["./src/app.tsx", "./src/components/api.ts"],
context: `${__dirname}`,
output: {
globalObject: "this",
path: `${__dirname}/../../../public/static`,
chunkFilename: "[name].bundle.js",
filename: "[name].bundle.js"
filename: "[name].bundle.js",
library: "Q",
},
plugins: [
new HtmlWebpackPlugin({
template: `${__dirname}/build/template/index.template.html`,
hash: true,
filename: `../index.html`,
minify: false
})
]
minify: false,
}),
],
});

View file

@ -89,7 +89,7 @@ func DefaultConfigStruct() *Config {
CookieTTL: 3600 * 24 * 7, // 1 week
CookieSecure: false,
CookieHttpOnly: true,
MinUserNameLen: 4,
MinUserNameLen: 3,
MinPwdLen: 8,
CaptchaWidth: 256,
CaptchaHeight: 60,
@ -121,7 +121,7 @@ func DefaultConfigStruct() *Config {
Site: &db.SiteConfig{
ClientCfg: &db.ClientConfig{
SiteName: "Quickshare",
SiteDesc: "quick and simple file sharing",
SiteDesc: "Quick and simple file sharing",
Bg: &db.BgConfig{
Url: "/static/img/textured_paper.png",
Repeat: "repeat",

View file

@ -165,7 +165,7 @@ func initDeps(cfg gocfg.ICfg) *depidx.Deps {
err = siteStore.Init(&db.SiteConfig{
ClientCfg: &db.ClientConfig{
SiteName: cfg.StringOr("Site.ClientCfg.SiteName", "Quickshare"),
SiteDesc: cfg.StringOr("Site.ClientCfg.SiteDesc", "quick and simple file sharing"),
SiteDesc: cfg.StringOr("Site.ClientCfg.SiteDesc", "Quick and simple file sharing"),
Bg: &db.BgConfig{
Url: cfg.StringOr("Site.ClientCfg.Bg.Url", "/static/img/textured_paper.png"),
Repeat: cfg.StringOr("Site.ClientCfg.Bg.Repeat", "repeat"),