mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-03 10:40:06 +00:00
Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b614bafd03 | ||
|
|
34cabcde2d | ||
|
|
de82058850 | ||
|
|
327be9e141 | ||
|
|
f1502c0773 | ||
|
|
c8a2df2d1f | ||
|
|
2be6200b90 | ||
|
|
333289cd20 | ||
|
|
204139cd01 | ||
|
|
2a38b68e69 | ||
|
|
39cc20b680 | ||
|
|
8b3c9746fc | ||
|
|
7a76f5f343 | ||
|
|
2bbcd7dee7 | ||
|
|
b02ce07ddf | ||
|
|
41400bea86 | ||
|
|
991ac100f6 | ||
|
|
66c156d299 | ||
|
|
7d0d830391 | ||
|
|
0b038380c7 | ||
|
|
162ba5e837 | ||
|
|
f217b3eb04 | ||
|
|
6b9436b1c6 |
2
.github/workflows/npmpublish.yml
vendored
2
.github/workflows/npmpublish.yml
vendored
@@ -6,7 +6,7 @@ name: SASjs Build and Publish
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Contributing
|
||||
|
||||
Contributions to SASjs are very welcome! When making a PR, test cases should be included. To help in unit testing, be sure to run the following when making changes:
|
||||
Contributions to SASjs are very welcome! When making a PR, test cases should be included. To help in unit testing, be sure to run the following when making changes:
|
||||
|
||||
```
|
||||
# the following creates a tarball in the build folder of SASjs
|
||||
@@ -10,12 +10,13 @@ npm run-script package:lib
|
||||
npm install ../sasjs/build/<tarball filename>
|
||||
```
|
||||
|
||||
Tests are run using cypress. Before running tests, you need to define the following backend services:
|
||||
Tests are run using cypress. Before running tests, you need to define the following backend services:
|
||||
|
||||
# SAS 9
|
||||
|
||||
```
|
||||
|
||||
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas?_=1";
|
||||
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/main/mc_all.sas?_=1";
|
||||
%inc mc;
|
||||
filename ft15f001 temp;
|
||||
parmcards4;
|
||||
@@ -37,8 +38,9 @@ parmcards4;
|
||||
```
|
||||
|
||||
# Viya
|
||||
|
||||
```
|
||||
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas";
|
||||
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/main/mc_all.sas";
|
||||
%inc mc;
|
||||
|
||||
filename ft15f001 temp;
|
||||
@@ -77,4 +79,4 @@ parmcards4;
|
||||
%mv_createwebservice(path=/Public/app/common,name=sendArr)
|
||||
```
|
||||
|
||||
The above services will return anything you send. To run the tests simply launch `npm run cypress`.
|
||||
The above services will return anything you send. To run the tests simply launch `npm run cypress`.
|
||||
|
||||
26
README.md
26
README.md
@@ -1,31 +1,29 @@
|
||||
[](https://www.jsdelivr.com/package/npm/sasjs)
|
||||
[](https://www.jsdelivr.com/package/npm/@sasjs/adapter)
|
||||
|
||||
# SASjs
|
||||
# @sasjs/adapter
|
||||
|
||||
SASjs is a open-source framework for building Web Apps on SAS® platforms. You can use as much or as little of it as you like. This repository contains the JS adapter, the part that handles the to/from SAS communication on the client side. There are 3 ways to install it:
|
||||
|
||||
1 - `npm install sasjs` - for use in a node project
|
||||
1 - `npm install @sasjs/adapter` - for use in a node project
|
||||
|
||||
2 - [Download](https://cdn.jsdelivr.net/npm/sasjs/index.js) and use a copy of the latest JS file
|
||||
2 - [Download](https://cdn.jsdelivr.net/npm/@sasjs/adapter@1/index.js) and use a copy of the latest JS file
|
||||
|
||||
3 - Reference directly from the CDN - in which case click [here](https://www.jsdelivr.com/package/npm/sasjs?tab=collection) and select "SRI" to get the script tag with the integrity hash.
|
||||
3 - Reference directly from the CDN - in which case click [here](https://www.jsdelivr.com/package/npm/@sasjs/adapter?tab=collection) and select "SRI" to get the script tag with the integrity hash.
|
||||
|
||||
If you are short on time and just need to build an app quickly, then check out [this video](https://vimeo.com/393161794) and the [react-seed-app](https://github.com/macropeople/react-seed-app) which provides some boilerplate.
|
||||
|
||||
For more information on building web apps with SAS, check out [sasjs.io](https://sasjs.io)
|
||||
|
||||
## None of this makes sense. How do I build an app with it?
|
||||
|
||||
## None of this makes sense. How do I build an app with it?
|
||||
|
||||
Ok ok. Deploy this [example.html](https://github.com/macropeople/sasjs/blob/master/example.html) file to your web server, and update `servertype` to `SAS9` or `SASVIYA` depending on your backend.
|
||||
Ok ok. Deploy this [example.html](https://github.com/sasjs/adapter/blob/main/example.html) file to your web server, and update `servertype` to `SAS9` or `SASVIYA` depending on your backend.
|
||||
|
||||
The backend part can be deployed as follows:
|
||||
|
||||
```
|
||||
%let appLoc=/Public/app/readme; /* Metadata or Viya Folder location as per SASjs config */
|
||||
/* compile macros (can also be downloaded & compiled seperately) */
|
||||
filename mc url "https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas";
|
||||
%inc mc;
|
||||
%let appLoc=/Public/app/readme; /* Metadata or Viya Folder per SASjs config */
|
||||
filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
|
||||
%inc mc; /* compile macros (can also be downloaded & compiled seperately) */
|
||||
filename ft15f001 temp;
|
||||
parmcards4;
|
||||
%webout(FETCH) /* receive all data as SAS datasets */
|
||||
@@ -45,6 +43,6 @@ You now have a simple web app with a backend service!
|
||||
|
||||
# More resources
|
||||
|
||||
For more information specific to this adapter you can check out this [user guide](https://sasjs.io/sasjs/sasjs-adapter/) or the [technical](http://adapter.sasjs.io/) documentation.
|
||||
For more information specific to this adapter you can check out this [user guide](https://sasjs.io/sasjs/sasjs-adapter/) or the [technical](http://adapter.sasjs.io/) documentation.
|
||||
|
||||
For more information on building web apps in general, check out these [resources](https://sasjs.io/training/resources/) or contact the [author](https://www.linkedin.com/in/allanbowe/) directly.
|
||||
For more information on building web apps in general, check out these [resources](https://sasjs.io/training/resources/) or contact the [author](https://www.linkedin.com/in/allanbowe/) directly.
|
||||
|
||||
1
docs/_config.yml
Normal file
1
docs/_config.yml
Normal file
@@ -0,0 +1 @@
|
||||
theme: jekyll-theme-minimal
|
||||
File diff suppressed because one or more lines are too long
287
docs/classes/reflection-445.reflection-1.sas9apiclient.html
Normal file
287
docs/classes/reflection-445.reflection-1.sas9apiclient.html
Normal file
File diff suppressed because one or more lines are too long
919
docs/classes/reflection-445.reflection-1.sasjs.html
Normal file
919
docs/classes/reflection-445.reflection-1.sasjs.html
Normal file
File diff suppressed because one or more lines are too long
782
docs/classes/reflection-445.reflection-1.sasviyaapiclient.html
Normal file
782
docs/classes/reflection-445.reflection-1.sasviyaapiclient.html
Normal file
File diff suppressed because one or more lines are too long
280
docs/classes/types.sasjsconfig.html
Normal file
280
docs/classes/types.sasjsconfig.html
Normal file
File diff suppressed because one or more lines are too long
183
docs/enums/types.servertype.html
Normal file
183
docs/enums/types.servertype.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
341
docs/index.html
341
docs/index.html
File diff suppressed because one or more lines are too long
215
docs/interfaces/types.context.html
Normal file
215
docs/interfaces/types.context.html
Normal file
File diff suppressed because one or more lines are too long
187
docs/interfaces/types.csrftoken.html
Normal file
187
docs/interfaces/types.csrftoken.html
Normal file
File diff suppressed because one or more lines are too long
201
docs/interfaces/types.folder.html
Normal file
201
docs/interfaces/types.folder.html
Normal file
File diff suppressed because one or more lines are too long
243
docs/interfaces/types.job.html
Normal file
243
docs/interfaces/types.job.html
Normal file
File diff suppressed because one or more lines are too long
173
docs/interfaces/types.jobresult.html
Normal file
173
docs/interfaces/types.jobresult.html
Normal file
File diff suppressed because one or more lines are too long
229
docs/interfaces/types.link.html
Normal file
229
docs/interfaces/types.link.html
Normal file
File diff suppressed because one or more lines are too long
247
docs/interfaces/types.sasjsrequest.html
Normal file
247
docs/interfaces/types.sasjsrequest.html
Normal file
File diff suppressed because one or more lines are too long
233
docs/interfaces/types.sasjswaitingrequest.html
Normal file
233
docs/interfaces/types.sasjswaitingrequest.html
Normal file
File diff suppressed because one or more lines are too long
173
docs/interfaces/types.session.html
Normal file
173
docs/interfaces/types.session.html
Normal file
File diff suppressed because one or more lines are too long
107
docs/modules/reflection-445.html
Normal file
107
docs/modules/reflection-445.html
Normal file
File diff suppressed because one or more lines are too long
121
docs/modules/reflection-445.reflection-1.html
Normal file
121
docs/modules/reflection-445.reflection-1.html
Normal file
File diff suppressed because one or more lines are too long
160
docs/modules/types.html
Normal file
160
docs/modules/types.html
Normal file
File diff suppressed because one or more lines are too long
549
docs/modules/utils.html
Normal file
549
docs/modules/utils.html
Normal file
File diff suppressed because one or more lines are too long
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
||||
<script src="https://cdn.jsdelivr.net/combine/npm/chart.js@2.9.3,npm/jquery@3.5.1,npm/sasjs@2.11.0"></script>
|
||||
<script src="https://cdn.jsdelivr.net/combine/npm/chart.js@2.9.3,npm/jquery@3.5.1,npm/@sasjs/adapter@1"></script>
|
||||
<script>
|
||||
var sasJs = new SASjs.default({appLoc: "/Products/demo/readme"
|
||||
,serverType:"SAS9", debug: "false"
|
||||
|
||||
2323
package-lock.json
generated
2323
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -22,6 +22,9 @@
|
||||
{
|
||||
"pkgRoot": "/build"
|
||||
}
|
||||
],
|
||||
"branches": [
|
||||
"main"
|
||||
]
|
||||
},
|
||||
"keywords": [
|
||||
@@ -36,11 +39,9 @@
|
||||
},
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@cypress/webpack-preprocessor": "^4.1.5",
|
||||
"@types/isomorphic-fetch": "0.0.35",
|
||||
"@types/jest": "^26.0.3",
|
||||
"@types/jest": "^26.0.4",
|
||||
"cp": "^0.2.0",
|
||||
"cypress": "^4.9.0",
|
||||
"jest": "^25.5.4",
|
||||
"path": "^0.12.7",
|
||||
"prettier": "^2.0.5",
|
||||
@@ -51,7 +52,7 @@
|
||||
"tslint": "^6.1.2",
|
||||
"tslint-config-prettier": "^1.18.0",
|
||||
"typedoc": "^0.17.8",
|
||||
"typedoc-neo-theme": "^1.0.8",
|
||||
"typedoc-neo-theme": "^1.0.9",
|
||||
"typedoc-plugin-external-module-name": "^4.0.3",
|
||||
"typescript": "^3.9.6",
|
||||
"uglifyjs-webpack-plugin": "^2.2.0",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"links": [
|
||||
{
|
||||
"label": "SASjs on Github",
|
||||
"url": "https://github.com/macropeople/sasjs"
|
||||
"url": "https://github.com/sasjs/adapter"
|
||||
},
|
||||
{
|
||||
"label": "SASjs.io",
|
||||
@@ -32,11 +32,11 @@
|
||||
},
|
||||
{
|
||||
"label": "SASjs CLI",
|
||||
"url": "https://github.com/macropeople/sasjs-cli"
|
||||
"url": "https://github.com/sasjs/cli"
|
||||
},
|
||||
{
|
||||
"label": "React Seed App",
|
||||
"url": "https://github.com/macropeople/react-seed-app"
|
||||
"url": "https://github.com/sasjs/react-seed-app"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user