mirror of
https://github.com/knadh/listmonk.git
synced 2025-09-07 06:56:54 +08:00
Prepare first RC.
This commit is contained in:
parent
ffbda019e4
commit
53d79297ca
6 changed files with 10 additions and 9 deletions
|
@ -231,7 +231,7 @@ func installTemplates(q *models.Queries) (int, int) {
|
|||
lo.Fatalf("error reading default visual template json: %v", err)
|
||||
}
|
||||
|
||||
if err := q.CreateTemplate.Get(&campTplID, "Sample visual template", models.TemplateTypeCampaignVisual, "", visualTpl.ReadBytes(), visualSrc.ReadBytes()); err != nil {
|
||||
if _, err := q.CreateTemplate.Exec("Sample visual template", models.TemplateTypeCampaignVisual, "", visualTpl.ReadBytes(), visualSrc.ReadBytes()); err != nil {
|
||||
lo.Fatalf("error creating default campaign template: %v", err)
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ var migList = []migFunc{
|
|||
{"v3.0.0", migrations.V3_0_0},
|
||||
{"v4.0.0", migrations.V4_0_0},
|
||||
{"v4.1.0", migrations.V4_1_0},
|
||||
{"v5.0.0", migrations.V5_0_0},
|
||||
{"v5.0.0-rc.1", migrations.V5_0_0_rc1},
|
||||
}
|
||||
|
||||
// upgrade upgrades the database to the current version by running SQL migration files
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@usewaypoint/editor-sample",
|
||||
"version": "0.0.1",
|
||||
"name": "@listmonk/email-builder",
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
|
|
@ -5,12 +5,13 @@ import react from '@vitejs/plugin-react-swc';
|
|||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
define: {
|
||||
'process.env.NODE_ENV': '"production"'
|
||||
'process.env.NODE_ENV': '"production"',
|
||||
},
|
||||
build: {
|
||||
lib: {
|
||||
entry: resolve(__dirname, 'src/main.tsx'),
|
||||
name: 'EmailBuilder',
|
||||
formats: ['umd'],
|
||||
fileName: (format) => `email-builder.${format}.js`,
|
||||
},
|
||||
minify: 'terser',
|
||||
|
@ -27,5 +28,5 @@ export default defineConfig({
|
|||
// },
|
||||
// },
|
||||
// }
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"github.com/knadh/stuffbin"
|
||||
)
|
||||
|
||||
// V5_0_0 performs the DB migrations.
|
||||
func V5_0_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf, lo *log.Logger) error {
|
||||
// V5_0_0_rc1 performs the DB migrations.
|
||||
func V5_0_0_rc1(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf, lo *log.Logger) error {
|
||||
lo.Println("IMPORTANT: this upgrade might take a while if you have a large database. Please be patient ...")
|
||||
if _, err := db.Exec(`
|
||||
-- Create a new temp materialized view with the fixed query (removing COUNT(*) that returns 1 for NULLs)
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
"padding": { "top": 16, "bottom": 16, "right": 24, "left": 24 }
|
||||
},
|
||||
"props": {
|
||||
"buttonBackgroundColor": "#2563EB",
|
||||
"buttonBackgroundColor": "#0055d4",
|
||||
"text": "This is a button",
|
||||
"url": "https://listmonk.app"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue