https://github.com/pyhedgehog/saltcorn-config-tables
Saltcorn plugin: Collection of external tables re-formatted from configuration
https://github.com/pyhedgehog/saltcorn-config-tables
Last synced: 20 days ago
JSON representation
Saltcorn plugin: Collection of external tables re-formatted from configuration
- Host: GitHub
- URL: https://github.com/pyhedgehog/saltcorn-config-tables
- Owner: pyhedgehog
- License: mit
- Created: 2023-10-06T16:02:22.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-26T13:28:12.000Z (over 1 year ago)
- Last Synced: 2025-01-14T08:38:27.417Z (11 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# saltcorn-config-tables
## Tables provided
1. sccfg_tenants - list of tenants available (useful for menu dynamic links)
2. sccfg_plugins - list of installed plugins
3. sccfg_plugins_store - list of available plugins (roughtly `getState().getConfig('available_plugins', [])`).
4. sccfg_langs - list of languages (will be useful once [#1393](https://github.com/saltcorn/saltcorn/issues/1393) implemented)
5. sccfg_translations - list of string translations per language
6. sccfg_untranslated - list of untranslated strings per language
7. sccfg_roles - list of user roles
8. sccfg_users - list of users with additional columns
## TODO
- Wiki page for documentation link
- Descriptions of tables and columns
- Plugin configuration to enable/disable tables
- Plugin configuration to include entries from other tenants to `sccfg_*` tables of `admin_*` tables.
- Table for localization strings (`select lang,srctext,tgttext from _sc_config t, jsonb_each(t.value->'v') l(lang,langmap), jsonb_each_text(langmap) _(srctext,tgttext) where t.key='localizer_strings'`)
- Table for configuration as a whole
- Tables for packs (installed and available)
- Table for available snapshots
- Tables for menu items (original and unrolled) with crafted identifiers and parent fkeys
- Tables to access other `_sc_*` tables (files, tables, views, pages, roles, triggers). May be some of them should be disabled by default.