sasjs / minimal-seed-app Goto Github PK
View Code? Open in Web Editor NEWVanilla JavaScript seed app for SASjs
Vanilla JavaScript seed app for SASjs
Currently the SASjs Config attributes are loaded in some inline-JS in the index.html
This will break for sites with secure CSP (Content-Security Policy) settings.
As best practice, our apps should work with strict CSP - so instead we should fetch the Config attributes from special HTML tags, eg:
<my-app
serverUrl=""
appLoc="/apps/appName"
serverType="SASJS"
loginMechanism="Default"
debug="false"
useComputeApi="true"
contextName="MyApp compute context"
></my-app>
This happens on minimal-seed-app on appinit:
SAS log:
https://paste.4gl.io/?e8210ae9c27f2e81#DWz7WVMhm6ArVXyXmdxSd1DHRmFC7VoGGS11veGzAXuw
Also, appLoc doesn't match the sasjsconfig
currently when deploying as a streaming app, the first page is the logon screen
This makes no sense, as we have already authenticated (eg to access the /services/clickme file)
We should have a test on startup to see if we are already authenticated, and if so, to skip the logon screen.
Currently our mocked getdata response is static: https://github.com/sasjs/minimal-seed-app/blob/main/sasjs/mocks/services/common/getdata.js
We should randomly provide 2 or 3 different responses.
Actual responses can be obtained by deploying the app to SASjs Server with 'sas' as the primary RUN_TIMES setting.
We should sanitise any environment specific outputs before committing to the repo, eg:
"SYSUSERID":"sasjsuser",
"MF_GETUSER":"SASjs User",
"SYSSITE":"0",
"SYSTCPIPHOSTNAME":"https://sasjs.com",
"SYSVLONG":"",
"SYSHOSTINFOLONG":""
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.