Skip to content

Commit 98f443d

Browse files
committed
- Initial Commit
1 parent a59d256 commit 98f443d

27 files changed

+2975
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

README.md

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
1-
# shio-js-sdk
2-
Shio Javascript SDK
1+
# Shio CMS JavaScript SDK
2+
3+
4+
## Init
5+
```sh
6+
yarn
7+
```
8+
9+
## Build project
10+
11+
```sh
12+
npm run build
13+
```
14+
15+
## Test pacakge
16+
17+
```sh
18+
npm test
19+
```
20+
21+
## Deploy package
22+
23+
```sh
24+
npm run deploy
25+
```

dist/index.d.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { ShRegion } from './shio/ShRegion';
2+
import { ShObject } from './shio/ShObject';
3+
import { ShPageLayout } from './shio/ShPageLayout';
4+
export declare const shContent: () => {
5+
system: {
6+
id: string;
7+
};
8+
test: string;
9+
};
10+
export declare const shObject: () => typeof ShObject;
11+
export declare const shRegion: () => typeof ShRegion;
12+
export declare const shPageLayout: () => typeof ShPageLayout;

dist/index.js

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/shio/ShContent.d.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export declare class ShContent {
2+
regionName: String;
3+
constructor(_regionName: any);
4+
getContent(): {
5+
system: {
6+
id: string;
7+
};
8+
test: string;
9+
};
10+
}

dist/shio/ShContent.js

+23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/shio/ShContent.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/shio/ShObject.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export declare class ShObject {
2+
navigation(siteName: String, isHome: boolean): {
3+
id: string;
4+
name: string;
5+
}[];
6+
generateFolderLink: (folderId: String) => String;
7+
}

dist/shio/ShObject.js

+25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/shio/ShObject.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/shio/ShPageLayout.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export declare class ShPageLayout {
2+
pageLayoutName: String;
3+
constructor(_pageLayoutName: any);
4+
readPageLayout(filePath: any, shContent: any, shObject: any): Promise<any>;
5+
render(shContent: any, shObject: any): Promise<any>;
6+
}

dist/shio/ShPageLayout.js

+104
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/shio/ShPageLayout.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/shio/ShRegion.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export declare class ShRegion {
2+
regionName: String;
3+
constructor(_regionName: any);
4+
render(shContent: any, shObject: any): Promise<any>;
5+
}

dist/shio/ShRegion.js

+61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/shio/ShRegion.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)