Code Monkey home page Code Monkey logo

saltcorn's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

saltcorn's Issues

Link in table

When rendering table content as a link, the link points to a page that doesn't exist, link should rather open a modal or a Show/Edit view of the item clicked.
Example :
image
After click
image

Probleb - If admin deleted field (column in table) the Saltcorn should delete this field from view or ...

Or do some else to avoid the exceptions on run time like:

User
TypeError: Cannot read property 'type' of undefined
at new Field (/usr/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/data/models/field.js:13:12)
at /usr/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/data/base-plugin/viewtemplates/list.js:118:17
at Array.forEach ()
at Object.get_state_fields (/usr/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/data/base-plugin/viewtemplates/list.js:116:19)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async View.get_state_fields (/usr/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/data/models/view.js:41:14)
at async View.get_state_form (/usr/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/data/models/view.js:207:22)
at async /usr/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/server/routes/view.js:29:26
A report has been logged and a team of bug-squashing squirrels has been dispatched to deal with the situation.

Idea to Add functionality of regular backup

  1. Regular backups should be performed on a schedule.

  2. Regular backups should be stored in filesystem.

  3. Parameters for backup: schedule (aka crontab 0 0 * * * - everyday at 00 00), path to store backup files

  4. Parameters should be saved in saltcorn confuguration.

Translations

How could I translate Saltcorn? Is there a way to create translations besides hardcoding, so that different users could select different languages?

Feature: [View] Allow to set date representation

version 0.2.2
I think that we need to support Date Format like YYYY-MM-DD e.g. for output Date values in views.

image

  1. I suggest to have ability to define common data / time formats for particular tenant.

  2. Also in concrete view for cocnrete date field it will be great to have ability to set up date format.

[/auth/login] Amount of login failure attempts and capture

I suggest to add check for amounts of login failure and add capture input after X failure attemps on login screen.

The amount of login failures has to be defined in configuration.
The default value is 3.
If it equals to zero than amount hasnt limit.

Imho The amount of login attempts and capture are important protection from bots and hackers.

[Enhancement request] better date formatting

Hello,
Right now dates are shown this way :
2020-01-01T00:00:00.000Z which is understandable, but for most people will not get it, I saw you're using moment.js in saltcorn, so it wouldn't be complicated to get a more human readable date like 2020-01-01 00:00, what would be better is to let users choose the formatting according to their languages or to their needs.
Thanks ๐Ÿ˜Š I tried to do it myself but iam afraid to break everything .

[/auth/login] the language for Login screen

Related to #264.

image

The problem - the login screen shows language that browser set as default.

Scenario to repeat:

  1. Change user language in user settings from default language for your browser

  2. Logout

  3. I'll see login screen in default language for browser

My suggestion is to add language picker to login screen to allow change language on login screen or save in cookies current language.

Idea to Add login name for the user

Currently only email used to identify user of Saltcorn site.

The more familiar practice that user also can define user name or nickname and use it as login name.

Login name should be unique.

Calendar View

Idea to improvement.

Add Calendar view to Saltcorn.

Support of mysql

I just want to give some valuable support for the project. So ill try to develop mysql support on weekends.

[/tenant/create] Add more fields

This is idea for improvement.

I suggesting to add few optional fileds to https://saltcorn.com/tenant/create
image

The suggested fields:

  1. Site name (currently accessable in Configuration\Site Name)

  2. Site admin email -> will be saved in tenant information at main site and available in [/tenant/list] . See issue #296
    In future also we can add:
    2.1. copy admin user info from main site to tenant -> this will allow to create tenant with predefined admin user
    2.2. send email to admin user with invitation to work with tenant

  3. Site logo (currently accessable in Configuration\Site logo)

  4. Default language (when it will be in Configuration)

  5. Choose common "Visibilty" of App.

Also add description that fields are optional and can be defined later in Configuration.

May be some other fields can be suitable.

Also I think that Configuration\basic url need to be set by default to Application name (subdomain name) after creation of site.

P.S. Also we need to test creation of subdomain with cyrilics characters - i ll do this later.

Feature: Clone current record in List View.

The idea is to have ability to quickly do clone of current record of table data.

This is can be combination of Action in Row with Link to other view.

For example if we will base on "Link to other view":
image

So has to be defined additional control "Action" where Admin can choos:

  • Edit
  • Clone

If Admin choose Clone than:

When User click to clone
The Saltcorn opens RecordEdit view (in example IssueTypeEdit) populated with data from current record.

User changes data and click to Save.

The Saltcorn creates new record based on user input,

Problem with install on Ubunty 18

root@XXX:~# npm install -g @saltcorn/cli
npm WARN deprecated [email protected]: request has been deprecated, see https://git hub.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
/usr/bin/saltcorn -> /usr/lib/node_modules/@saltcorn/cli/bin/saltcorn

[email protected] install /usr/lib/node_modules/@saltcorn/cli/node_modules/connect -sqlite3/node_modules/sqlite3
node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and node@ 14.10.0 (node-v83 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/lib/node_modu les/@saltcorn/cli/node_modules/connect-sqlite3/node_modules/sqlite3/lib/binding'
gyp WARN EACCES current user ("nobody") does not have permission to access the d ev dir "/root/.cache/node-gyp/14.10.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_m odules/@saltcorn/cli/node_modules/connect-sqlite3/node_modules/sqlite3/.node-gyp "
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/@s altcorn/cli/node_modules/connect-sqlite3/node_modules/sqlite3/.node-gyp'
gyp ERR! System Linux 4.15.0-117-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy p/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/lib/node_mod ules/@saltcorn/cli/node_modules/connect-sqlite3/node_modules/sqlite3/lib/binding /node-v83-linux-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_pa th=/usr/lib/node_modules/@saltcorn/cli/node_modules/connect-sqlite3/node_modules /sqlite3/lib/binding/node-v83-linux-x64" "--napi_version=6" "--node_abi_napi=nap i" "--napi_build_version=0" "--node_napi_label=node-v83"
gyp ERR! cwd /usr/lib/node_modules/@saltcorn/cli/node_modules/connect-sqlite3/no de_modules/sqlite3
gyp ERR! node -v v14.10.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_mo dules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build -- module=/usr/lib/node_modules/@saltcorn/cli/node_modules/connect-sqlite3/node_mod ules/sqlite3/lib/binding/node-v83-linux-x64/node_sqlite3.node --module_name=node _sqlite3 --module_path=/usr/lib/node_modules/@saltcorn/cli/node_modules/connect- sqlite3/node_modules/sqlite3/lib/binding/node-v83-linux-x64 --napi_version=6 --n ode_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
node-pre-gyp ERR! stack at ChildProcess. (/usr/lib/node_modules/@ saltcorn/cli/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:314:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1047:16)
node-pre-gyp ERR! stack at Process.ChildProcess.handle.onexit (internal/chi ld_process.js:287:5)
node-pre-gyp ERR! System Linux 4.15.0-117-generic
node-pre-gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/@saltcorn/cli/n ode_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/lib/node_modules/@saltcorn/cli/node_modules/connect-s qlite3/node_modules/sqlite3
node-pre-gyp ERR! node -v v14.10.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp /bin/node-gyp.js configure --fallback-to-build --module=/usr/lib/node_modules/@s altcorn/cli/node_modules/connect-sqlite3/node_modules/sqlite3/lib/binding/node-v 83-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/usr/lib /node_modules/@saltcorn/cli/node_modules/connect-sqlite3/node_modules/sqlite3/li b/binding/node-v83-linux-x64 --napi_version=6 --node_abi_napi=napi --napi_build
version=0 --node_napi_label=node-v83' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-09-09T13_55_30_907Z-debug.log

Feature: support external identity provider

As an application admin in Saltcorn
I should be able to configure an external identity provider (IdP) in my application
In order to grant users access based on roles/profiles defined in my corporate identity management solution.

I'd like to integrate Saltcorn to our cloud platform but without capability to centralize user/roles management such as Keycloak for all apps developed by users, enterprise use cases will quickly be limited.

We may be able to help if you provide some guidance.
And thanks for nice work!

Feature request : Filter and sort data in a list view

I know this is possible by using search filter, but sometimes we need to have prefiltered list view, for example i have a table with projects, some of them are current while others are archived, i need a view with only current projects, so i can show it in my dashboard depending on the archived toggle.

[Markdown] Exception on empty values

The scenario:

  1. Open Edit View for table record with empty markdown field

  2. Close Edit.

  3. You will receive message:
    image

  4. Try to open List View for this table. You'll receive exception:

Internal Error
Error: Input data should be a String
at MarkdownIt.parse (/home/saltcorn/plugin_packages/markdown-it/lib/index.js:519:11)
at MarkdownIt.render (/home/saltcorn/plugin_packages/markdown-it/lib/index.js:544:36)
at Object.run (/home/saltcorn/plugin_packages/@saltcorn/markdown/markdown.js:18:44)
at Object.key (/usr/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/data/base-plugin/viewtemplates/viewable_fields.js:160:59)
at /usr/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/markup/table.js:95:73
at Array.map ()
at /usr/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/markup/table.js:94:20
at Array.map ()
at /usr/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/markup/table.js:91:22
at newf (/usr/lib/node_modules/@saltcorn/cli/node_modules/contractis/contract.js:66:45)
at Object.run (/usr/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/data/base-plugin/viewtemplates/list.js:211:10)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async View.run (/usr/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/data/models/view.js:141:12)
at async /usr/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/server/routes/view.js:28:20
A report has been logged and a team of bug-squashing squirrels has been dispatched to deal with the situation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.