gctGenerator/site/.vuepress/components/codes/codegen.js
sup39 3fa416388d Improve PatternSelector and CustomizedDisplay
- Make PatternSelector shorter and make its appearance customizable (v0.3)
- Render CustomizedDisplay later than water/juice (v0.3)
2022-10-30 04:19:16 +09:00

23 lines
489 B
JavaScript

import InstantRestart from './InstantRestart/codegen.js';
import qft from './qft/codegen.js';
import CustomizedDisplay from './CustomizedDisplay/codegen.js';
import PatternSelector from './PatternSelector/codegen.js';
export default {
InstantRestart,
qft,
CustomizedDisplay,
PatternSelector,
};
/**
* @param {string|null} s -- raw input string
*/
export function parseJSON(s) {
if (s == null) return null;
try {
return JSON.parse(s);
} catch {
return null;
}
}