-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
974 additions
and
783 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Ignore artifacts: | ||
node_modules | ||
dist |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,69 @@ | ||
<template> | ||
<h1>AiScript ( | ||
<MenuButton id='version' :options='menu' @select='onVersionSelect'>{{ version }}</MenuButton> | ||
) Playground</h1> | ||
<Next v-if='version === "next"'></Next> | ||
<Develop v-if='version === "develop"'></Develop> | ||
<V0_16_0 v-if='version === "0.16.0"'></V0_16_0> | ||
<V0_15_0 v-if='version === "0.15.0"'></V0_15_0> | ||
<V0_14_1 v-if='version === "0.14.1"'></V0_14_1> | ||
<h1> | ||
AiScript ( | ||
<MenuButton id="version" :options="menu" @select="onVersionSelect">{{ | ||
version | ||
}}</MenuButton> | ||
) Playground | ||
</h1> | ||
<Next v-if="version === 'next'"></Next> | ||
<Develop v-if="version === 'develop'"></Develop> | ||
<V0_16_0 v-if="version === '0.16.0'"></V0_16_0> | ||
<V0_15_0 v-if="version === '0.15.0'"></V0_15_0> | ||
<V0_14_1 v-if="version === '0.14.1'"></V0_14_1> | ||
</template> | ||
|
||
<script setup lang='ts'> | ||
import { ref } from 'vue'; | ||
import MenuButton from '@common/MenuButton.vue'; | ||
import Next from './versions/next/index.vue'; | ||
import Develop from './versions/develop/index.vue'; | ||
import V0_16_0 from './versions/0.16.0/index.vue'; | ||
import V0_15_0 from './versions/0.15.0/index.vue'; | ||
import V0_14_1 from './versions/0.14.1/index.vue'; | ||
const versions = [ | ||
'next', | ||
'develop', | ||
'0.16.0', | ||
'0.15.0', | ||
'0.14.1' | ||
] as const; | ||
const latest = '0.16.0'; | ||
<script setup lang="ts"> | ||
import { ref } from "vue"; | ||
import MenuButton from "@common/MenuButton.vue"; | ||
import Next from "./versions/next/index.vue"; | ||
import Develop from "./versions/develop/index.vue"; | ||
import V0_16_0 from "./versions/0.16.0/index.vue"; | ||
import V0_15_0 from "./versions/0.15.0/index.vue"; | ||
import V0_14_1 from "./versions/0.14.1/index.vue"; | ||
const versions = ["next", "develop", "0.16.0", "0.15.0", "0.14.1"] as const; | ||
const latest = "0.16.0"; | ||
const version = ref(window.localStorage.getItem('version') ?? latest); | ||
const menu = Object.fromEntries(versions.map(v => [v, v + (v == latest ? '(latest)' : '')])); | ||
const version = ref(window.localStorage.getItem("version") ?? latest); | ||
const menu = Object.fromEntries( | ||
versions.map((v) => [v, v + (v == latest ? "(latest)" : "")]), | ||
); | ||
function onVersionSelect(v: string) { | ||
version.value = v; | ||
window.localStorage.setItem('version', version.value); | ||
version.value = v; | ||
window.localStorage.setItem("version", version.value); | ||
} | ||
</script> | ||
|
||
<style> | ||
:root { | ||
--borderThickness: 1px; | ||
--borderThickness: 1px; | ||
} | ||
* { | ||
font-family: Fira code, Fira Mono, Consolas, Menlo, Courier, monospace; | ||
font-family: | ||
Fira code, | ||
Fira Mono, | ||
Consolas, | ||
Menlo, | ||
Courier, | ||
monospace; | ||
} | ||
html { | ||
background: #171717; | ||
color: #fff; | ||
tab-size: 2; | ||
background: #171717; | ||
color: #fff; | ||
tab-size: 2; | ||
} | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
</style> | ||
|
||
<style scoped> | ||
h1 { | ||
font-size: 1.5em; | ||
margin: 16px 16px 0 16px; | ||
font-size: 1.5em; | ||
margin: 16px 16px 0 16px; | ||
} | ||
</style> | ||
|
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
Oops, something went wrong.