-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env node | ||
|
||
import("../dist/cli.cjs"); | ||
import("../dist/cli-watcher.cjs"); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite + React + TS</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: { config: "./gui/tailwind.config.js" }, | ||
autoprefixer: {}, | ||
}, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Alert, AlertButton, Box } from "@prismicio/editor-ui"; | ||
|
||
export function App(): JSX.Element { | ||
return ( | ||
<div className="bg-green-500"> | ||
<Box display="grid" gridTemplateColumns="repeat(5, 600px)" gap={16}> | ||
<Alert | ||
title="Title" | ||
subtitle="This is a subtitle" | ||
onClose={() => null} | ||
footerButtons={ | ||
<> | ||
<AlertButton title="Customer Support" onClick={() => null} /> | ||
<AlertButton title="Retry" onClick={() => null} /> | ||
</> | ||
} | ||
/> | ||
</Box> | ||
</div> | ||
); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import "@prismicio/editor-ui/style.css"; | ||
|
||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ThemeProvider } from "@prismicio/editor-ui"; | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
|
||
import { App } from "./App.tsx"; | ||
import "./index.css"; | ||
|
||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( | ||
<React.StrictMode> | ||
<ThemeProvider> | ||
<App /> | ||
</ThemeProvider> | ||
</React.StrictMode>, | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/// <reference types="vite/client" /> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* @type {import("tailwindcss").Config} | ||
Check warning on line 2 in gui/tailwind.config.js GitHub Actions / Suite (ubuntu-latest, Node 16)
Check warning on line 2 in gui/tailwind.config.js GitHub Actions / Suite (ubuntu-latest, Node 16)
Check warning on line 2 in gui/tailwind.config.js GitHub Actions / Suite (ubuntu-latest, Node 16)
Check warning on line 2 in gui/tailwind.config.js GitHub Actions / Suite (ubuntu-latest, Node 18)
Check warning on line 2 in gui/tailwind.config.js GitHub Actions / Suite (ubuntu-latest, Node 18)
Check warning on line 2 in gui/tailwind.config.js GitHub Actions / Suite (ubuntu-latest, Node 18)
Check warning on line 2 in gui/tailwind.config.js GitHub Actions / Suite (ubuntu-latest, Node 20)
Check warning on line 2 in gui/tailwind.config.js GitHub Actions / Suite (ubuntu-latest, Node 20)
|
||
*/ | ||
export default { | ||
content: ["./gui/index.html", "./gui/src/**/*.{js,ts,jsx,tsx}"], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES2020", | ||
"useDefineForClassFields": true, | ||
"lib": [ | ||
"ES2020", | ||
"DOM", | ||
"DOM.Iterable" | ||
], | ||
"module": "ESNext", | ||
"skipLibCheck": true, | ||
/* Bundler mode */ | ||
"moduleResolution": "bundler", | ||
"allowImportingTsExtensions": true, | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"noEmit": true, | ||
"jsx": "react-jsx", | ||
/* Linting */ | ||
"strict": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noFallthroughCasesInSwitch": true | ||
}, | ||
"include": [ | ||
"src" | ||
], | ||
"references": [ | ||
{ | ||
"path": "./tsconfig.node.json" | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"composite": true, | ||
"skipLibCheck": true, | ||
"module": "ESNext", | ||
"moduleResolution": "bundler", | ||
"allowSyntheticDefaultImports": true | ||
}, | ||
"include": ["vite.config.ts"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import react from "@vitejs/plugin-react"; | ||
import { defineConfig } from "vite"; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [react()], | ||
root: __dirname, | ||
build: { | ||
outDir: "../dist/gui", | ||
}, | ||
}); |