Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
136 changes: 63 additions & 73 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
"destroyable": "^0.5.0",
"everstorage": "^1.2.0",
"express": "^4.17.1",
"ink": "^3.0.8",
"ink": "^3.2.0",
"ink-spinner": "^4.0.2",
"ink-table": "^3.0.0",
"localtunnel": "^2.0.1",
"localtunnel": "^2.0.2",
"locate-app": "^1.2.0",
"node-gzip": "^1.1.2",
"puppeteer-core": "^10.1.0",
Expand Down
2 changes: 2 additions & 0 deletions test-samples/programming-languages/TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TODO: !!! Test modules in multiple programming langiages and make sure they work.
TODO: Python modules
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@collboard/sample-colldev-module",
"version": "1.0.0",
"main": "./src/sampleModule.tsx"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import * as React from 'react';
import { declareModule, ExtraJsxPlace, makeExtrajsxModule } from '../../../src/runtime/runtime';

declareModule(
makeExtrajsxModule({
manifest: {
name: '@collboard/sample-colldev-module',
title: { en: 'Hello world' },
description: {
en: 'Simple sample hello world button for Collboard.com',
},
},
place: ExtraJsxPlace.EdgeRight,
createExtraJsx() {
return (
<button
onClick={async () => {
alert(`Hello from testing of Collboard modules SDK!`);
}}
className="button button-primary button-vertical"
>
<span>🥑 Hello World!</span>
</button>
);
},
}),
);
15 changes: 15 additions & 0 deletions test-samples/programming-languages/javascript-esm/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"allowJs": true,
"moduleResolution": "node",
"jsx": "react",
"noEmit": false,
"downlevelIteration": true,
"esModuleInterop": true,
"strict": true
},
"include": ["src"],
"exclude": ["node_modules"]
}
5 changes: 5 additions & 0 deletions test-samples/programming-languages/javascript/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@collboard/sample-colldev-module",
"version": "1.0.0",
"main": "./src/sampleModule.tsx"
}
27 changes: 27 additions & 0 deletions test-samples/programming-languages/javascript/src/sampleModule.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import * as React from 'react';
import { declareModule, ExtraJsxPlace, makeExtrajsxModule } from '../../../src/runtime/runtime';

declareModule(
makeExtrajsxModule({
manifest: {
name: '@collboard/sample-colldev-module',
title: { en: 'Hello world' },
description: {
en: 'Simple sample hello world button for Collboard.com',
},
},
place: ExtraJsxPlace.EdgeRight,
createExtraJsx() {
return (
<button
onClick={async () => {
alert(`Hello from testing of Collboard modules SDK!`);
}}
className="button button-primary button-vertical"
>
<span>🥑 Hello World!</span>
</button>
);
},
}),
);
15 changes: 15 additions & 0 deletions test-samples/programming-languages/javascript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"allowJs": true,
"moduleResolution": "node",
"jsx": "react",
"noEmit": false,
"downlevelIteration": true,
"esModuleInterop": true,
"strict": true
},
"include": ["src"],
"exclude": ["node_modules"]
}
5 changes: 5 additions & 0 deletions test-samples/programming-languages/typescript/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@collboard/sample-colldev-module",
"version": "1.0.0",
"main": "./src/sampleModule.tsx"
}
Loading