feat: add sources form and table

This commit is contained in:
Alexander Navarro 2025-02-05 19:56:47 -03:00
parent e2a6c92322
commit baf70e6820
11 changed files with 103 additions and 8 deletions

45
src/app/sources/index.sql Normal file
View file

@ -0,0 +1,45 @@
SELECT
'dynamic' AS component,
sqlpage.read_file_as_text('../shared/shell.json') AS properties;
-- ╭─────────────────────────────────────────────────────────╮
-- │ Form │
-- ╰─────────────────────────────────────────────────────────╯
SELECT
'form' AS component,
'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;
-- ╭─────────────────────────────────────────────────────────╮
-- │ Table list │
-- ╰─────────────────────────────────────────────────────────╯
SELECT
'table' AS component,
TRUE as sort,
TRUE as search;
SELECT
*
FROM
public.sources;