generated from alecodes/base-template
Compare commits
No commits in common. "29065c72c8e5a76367e23ae144169d8cf6a04b58" and "9194eccab966085f02247094070d37cb044fbf84" have entirely different histories.
29065c72c8
...
9194eccab9
8 changed files with 7 additions and 83 deletions
|
|
@ -1,7 +0,0 @@
|
|||
POSTGRES_DB=index
|
||||
POSTGRES_USER=index
|
||||
POSTGRES_PASSWORD=
|
||||
|
||||
DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?sslmode=disable"
|
||||
|
||||
SQLPAGE_WEB_ROOT=app
|
||||
|
|
@ -11,5 +11,3 @@ dev:
|
|||
docker compose up --watch
|
||||
|
||||
dbmate +ARGS: (compose-exec "index dbmate" ARGS)
|
||||
|
||||
migrate: (dbmate "migrate")
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ FROM ghcr.io/linuxcontainers/debian-slim:latest
|
|||
|
||||
COPY --from=ghcr.io/amacneil/dbmate /usr/local/bin/dbmate /usr/local/bin/dbmate
|
||||
COPY --from=lovasoa/sqlpage:latest /usr/local/bin/sqlpage /usr/local/bin/sqlpage
|
||||
COPY --from=lovasoa/sqlpage:latest /lib/libgcc_s.so.1 /lib/libgcc_s.so.1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,3 @@ services:
|
|||
db:
|
||||
image: postgres:17
|
||||
env_file: ../.env
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
SELECT 'dynamic' AS component, sqlpage.read_file_as_text('../shared/shell.json') AS properties;
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
SELECT
|
||||
'dynamic' AS component,
|
||||
sqlpage.read_file_as_text('../shared/shell.json') AS properties;
|
||||
|
||||
-- ╭─────────────────────────────────────────────────────────╮
|
||||
-- │ Form │
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
SELECT
|
||||
'form' AS component,
|
||||
'sources/create.sql' AS ACTION,
|
||||
'Save' AS validate,
|
||||
'Sources' AS title;
|
||||
|
||||
SELECT
|
||||
'name' AS name,
|
||||
'Name' AS label,
|
||||
8 AS width,
|
||||
TRUE AS required;
|
||||
|
||||
SELECT
|
||||
'uid' AS name,
|
||||
'Identifier' AS label,
|
||||
4 AS width,
|
||||
5 AS maxlength,
|
||||
1 AS minlength,
|
||||
TRUE AS required;
|
||||
|
||||
SELECT
|
||||
'uri' AS name,
|
||||
'URI' AS label,
|
||||
TRUE AS required;
|
||||
|
||||
INSERT INTO
|
||||
public.sources(name, uid, uri)
|
||||
VALUES
|
||||
(:name, :uid, :uri);
|
||||
|
||||
-- ╭─────────────────────────────────────────────────────────╮
|
||||
-- │ Table list │
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
SELECT
|
||||
'table' AS component;
|
||||
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
public.sources;
|
||||
6
src/index.sql
Normal file
6
src/index.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
SELECT 'list' AS component,
|
||||
'Popular websites TESTOOO' AS title;
|
||||
|
||||
SELECT 'Hello' AS title,
|
||||
'world' AS description,
|
||||
'https://wikipedia.org' AS link;
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
{
|
||||
"component": "shell",
|
||||
"title": "Index",
|
||||
"link": "/",
|
||||
"layout": "boxed",
|
||||
"theme": "dark",
|
||||
"menu_item": [
|
||||
{ "link": "index.sql", "title": "Home" },
|
||||
{
|
||||
"title": "Dependencies",
|
||||
"icon": "brand-stackshare",
|
||||
"submenu": [
|
||||
{
|
||||
"link": "/sources/index.sql",
|
||||
"title": "Sources",
|
||||
"icon": "external-link"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue