- has many clusters.
- passes down the minimum and maximum server count
- passes down available apps for the cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "our-cool-nextjs-app", | |
"version": "0.1.0", | |
"dependencies": { | |
"next": "^9.1.1", | |
"react": "^16.10.2", | |
"react-dom": "^16.10.2", | |
"tslib": "^1.10.0" | |
}, | |
"scripts": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Enzyme from 'enzyme'; | |
import Adapter from 'enzyme-adapter-react-16'; | |
// Configure Enzyme with React 16 adapter | |
Enzyme.configure({ adapter: new Adapter() }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
"testEnvironment": "node", | |
"roots": [ | |
"<rootDir>/components" | |
], | |
"preset": "ts-jest", | |
"setupFilesAfterEnv": ["<rootDir>/tests/setupTests.ts"], | |
"transform": { | |
"^.+\\.tsx?$": "ts-jest" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
"testEnvironment": "node", | |
"roots": [ | |
"<rootDir>/components" | |
], | |
"preset": 'ts-jest', | |
"setupFilesAfterEnv": ["<rootDir>/tests/setupTests.ts"], | |
"transform": { | |
"^.+\\.tsx?$": "ts-jest" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": "./tsconfig.json", | |
"compilerOptions": { | |
"jsx": "react" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function charUnique(s) { | |
var r = {}, | |
i, x; | |
for (i = s.length - 1; i > -1; i--) { | |
x = s[i]; | |
if (r[x]) | |
return false; | |
r[x] = true; | |
} | |
return true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** If you want to use the local development environment with the dev backend, | |
* this will create a proxy so you won't run into CORS issues. | |
* It accepts the following command line parameters: | |
* - port the port where the proxy will listen | |
* - target the DEV backend target to contact. | |
* Example: If you set the port to 3000 and target to https://dev.nibo.ai then | |
* your actual "resourceBaseUrl" in NiboSettings should be http://localhost:3000/api/v1 | |
*/ | |
// Define the command line options | |
const optionDefinitions = [ |