Skip to content

replacing codeflask with code-input #2139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 47 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
24d6710
replacing codeflask with code-input
Bowrna Nov 5, 2024
33bb1db
code-input package added
pbowrna Mar 24, 2025
f2ff6c5
Remove package-lock.json from my commit
pbowrna Mar 24, 2025
753fb60
Fix DELETE list documentation. (#2335)
marcw Mar 7, 2025
a99613d
Bump prismjs from 1.29.0 to 1.30.0 in /frontend (#2345)
dependabot[bot] Mar 12, 2025
27f9c82
Disallow private list UUIDs on public sub endpoints. Closes #2296.
knadh Mar 12, 2025
4e26486
Bump github.com/go-jose/go-jose/v3 from 3.0.3 to 3.0.4 (#2346)
dependabot[bot] Mar 12, 2025
027cc79
Bump golang.org/x/net from 0.33.0 to 0.36.0 (#2348)
dependabot[bot] Mar 13, 2025
a6561c4
Tidy go.mod
knadh Mar 18, 2025
21670fd
Update Go version to v1.24.1
knadh Mar 18, 2025
fc696fc
Add Bulgarian i18n translation (#2349)
listumps Mar 18, 2025
6cc4e3a
Change the docker-compose example to bind Postgres locally. Closes #2…
knadh Mar 20, 2025
d24b1e2
Updating documentation to reflect AWS Console changes (#2365)
brismuth Mar 25, 2025
3e01ca8
Fix too greedy TrackLink regex replacement. (#2355)
0xdeb Mar 25, 2025
bd933a0
Add i18n Hungarian language pack fixes (#2370)
trustedtomato Mar 26, 2025
3458e38
Add Nuxt.js module to Supported Libraries Lists (#2371)
roncallyt Mar 26, 2025
af93fc7
Add minor i18n Hungarian language pack fixes (#2375)
trustedtomato Mar 28, 2025
e262005
Fix broken log rendering on importer UI.
knadh Mar 29, 2025
8f9f794
Remove ASCII-only restriction on media filenames. Closes #2277.
knadh Mar 29, 2025
808e5e6
Update i18n refresh script to remove deleted base keys from all other…
knadh Mar 29, 2025
fa34c47
Remove obsolete language key and refresh i18n files.
knadh Mar 29, 2025
7dc7bce
Remove forcing unique filename on all media uploads.
knadh Mar 29, 2025
8ff7578
Upgrade `smtppool` to `v2` and add support for concrete SSL options.
knadh Mar 29, 2025
cde35ea
Add support for domain allowlists in addition to blocklists. Closes #…
knadh Mar 29, 2025
710e9c6
Bump vite from 5.4.12 to 5.4.15 in /frontend (#2379)
dependabot[bot] Mar 29, 2025
1c4ad95
Fix incorrect loading spinner on the Lists UI. Closes #1822.
knadh Mar 30, 2025
88fbc91
Fix various static-check/idiom warnings.
knadh Mar 30, 2025
c01c777
Refactor UI time diff display function to prefix '-' on past dates.
knadh Mar 31, 2025
b03cbfb
Fix inconsistent behaviour in campaign scheduling on the UI.
knadh Mar 31, 2025
64fa2e7
Introduce per-campaign filter permissions. Closes #2325.
knadh Mar 30, 2025
2ad62f4
Refactor superfluous list perm check middleware into standalone funct…
knadh Apr 4, 2025
3a9cdda
Refactor user auth models and permission checks.
knadh Apr 4, 2025
c6ff420
Replace awkward auth user object access in handlers with an explicit …
knadh Apr 4, 2025
0df23f5
Fix a number of cosmetic inconsistenies across handlers and functions.
knadh Apr 5, 2025
49da7c3
Refactor all HTTP handlers and attach them to a single struct.
knadh Apr 5, 2025
37465c8
Refactor system notification callbacks into a new `notifs` package.
knadh Apr 5, 2025
416ebb9
Move all HTTP handlers directly to `App` and remove the redundant in-…
knadh Apr 5, 2025
0f1689b
Turn `notifs` into a special stateful global singleton package, remov…
knadh Apr 5, 2025
3215392
Remove superfluous `consts` dep in init functions by separating URL c…
knadh Apr 5, 2025
4bf22aa
Clean up main initialization to remove `app` interdepencies in init.
knadh Apr 5, 2025
b8af766
Add ability to wait and healthcheck for backend app in Cypress settin…
knadh Apr 6, 2025
d2f219a
Remove repetitive URL param `:id` validation and simplify handlers.
knadh Apr 6, 2025
05780a7
Bump vite from 5.4.15 to 5.4.17 in /frontend (#2391)
dependabot[bot] Apr 6, 2025
bd82a5e
Introduce `LISTMONK_ADMIN_API_USER` to `--install`. Closes #2314, #2322.
knadh Apr 10, 2025
18be408
Fix Raw CSV example on import UI (#2392)
pierreneillo Apr 14, 2025
24c9f43
Revert "Introduce `LISTMONK_ADMIN_API_USER` to `--install`. Closes #2…
Bowrna Apr 16, 2025
2b9732c
Revert "Fix Raw CSV example on import UI (#2392)"
Bowrna Apr 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.24.1"

- name: Prepare Dependencies and Build
run: make dist
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
uses: docker/setup-qemu-action@v2

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.23.2"
go-version: "1.24.1"

- name: Login to Docker Registry
uses: docker/login-action@v2
Expand All @@ -46,7 +46,7 @@ jobs:
docker version

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --parallelism 1 --clean
Expand Down
63 changes: 28 additions & 35 deletions cmd/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,75 +23,68 @@ type serverConfig struct {
Version string `json:"version"`
}

// handleGetServerConfig returns general server config.
func handleGetServerConfig(c echo.Context) error {
var (
app = c.Get("app").(*App)
)
// GetServerConfig returns general server config.
func (a *App) GetServerConfig(c echo.Context) error {
out := serverConfig{
RootURL: app.constants.RootURL,
FromEmail: app.constants.FromEmail,
Lang: app.constants.Lang,
Permissions: app.constants.PermissionsRaw,
HasLegacyUser: app.constants.HasLegacyUser,
RootURL: a.urlCfg.RootURL,
FromEmail: a.cfg.FromEmail,
Lang: a.cfg.Lang,
Permissions: a.cfg.PermissionsRaw,
HasLegacyUser: a.cfg.HasLegacyUser,
}

// Language list.
langList, err := getI18nLangList(app.constants.Lang, app)
langList, err := getI18nLangList(a.fs)
if err != nil {
return echo.NewHTTPError(http.StatusInternalServerError,
fmt.Sprintf("Error loading language list: %v", err))
}
out.Langs = langList

out.Messengers = make([]string, 0, len(app.messengers))
for _, m := range app.messengers {
out.Messengers = make([]string, 0, len(a.messengers))
for _, m := range a.messengers {
out.Messengers = append(out.Messengers, m.Name())
}

app.Lock()
out.NeedsRestart = app.needsRestart
out.Update = app.update
app.Unlock()
a.Lock()
out.NeedsRestart = a.needsRestart
out.Update = a.update
a.Unlock()
out.Version = versionString

return c.JSON(http.StatusOK, okResp{out})
}

// handleGetDashboardCharts returns chart data points to render ont he dashboard.
func handleGetDashboardCharts(c echo.Context) error {
var (
app = c.Get("app").(*App)
)

out, err := app.core.GetDashboardCharts()
// GetDashboardCharts returns chart data points to render ont he dashboard.
func (a *App) GetDashboardCharts(c echo.Context) error {
// Get the chart data from the DB.
out, err := a.core.GetDashboardCharts()
if err != nil {
return err
}

return c.JSON(http.StatusOK, okResp{out})
}

// handleGetDashboardCounts returns stats counts to show on the dashboard.
func handleGetDashboardCounts(c echo.Context) error {
var (
app = c.Get("app").(*App)
)

out, err := app.core.GetDashboardCounts()
// GetDashboardCounts returns stats counts to show on the dashboard.
func (a *App) GetDashboardCounts(c echo.Context) error {
// Get the chart data from the DB.
out, err := a.core.GetDashboardCounts()
if err != nil {
return err
}

return c.JSON(http.StatusOK, okResp{out})
}

// handleReloadApp restarts the app.
func handleReloadApp(c echo.Context) error {
app := c.Get("app").(*App)
// ReloadApp sends a reload signal to the app, causing a full restart.
func (a *App) ReloadApp(c echo.Context) error {
go func() {
<-time.After(time.Millisecond * 500)
app.chReload <- syscall.SIGHUP

// Send the reload signal to trigger the wait loop in main.
a.chReload <- syscall.SIGHUP
}()

return c.JSON(http.StatusOK, okResp{true})
}
Loading