-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Julien Huang <julien.h.dev@gmail.com> Co-authored-by: lihbr <lihbr@users.noreply.github.com>
- Loading branch information
1 parent
a079178
commit 4965e0b
Showing
44 changed files
with
1,822 additions
and
1,396 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
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,2 +1,3 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false | ||
ignore-workspace-root-check=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
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
client/composables/slicemachine.ts → client/app/composables/slicemachine.ts
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 |
---|---|---|
@@ -0,0 +1,133 @@ | ||
<script setup lang="ts"> | ||
import type { RPCClientType } from '../../../src/devtools/types' | ||
const props = defineProps<{ | ||
rpc: RPCClientType | ||
}>() | ||
const { status, start, stop, config } = await useSlicemachine(props.rpc) | ||
</script> | ||
|
||
<template> | ||
<div class="relative p-4 n-bg-base space-y-4"> | ||
<header> | ||
<h1 class="inline-block rounded border border-zinc-600 bg-zinc-900 p-1.5 heading text-m"> | ||
<span class="i-simple-icons:prismic align-sub" /> @nuxtjs/prismic | ||
</h1> | ||
</header> | ||
|
||
<main class="grid grid-cols-2 grid-auto-flow gap-4"> | ||
<NCard class="col-span-2 p-4 space-y-4"> | ||
<h2 class="text-m heading"> | ||
<span class="i-carbon:tools-alt align-sub" /> Slicemachine | ||
</h2> | ||
<section class="flex gap-2"> | ||
<SlicemachineStatusTip | ||
:running="status.running" | ||
class="flex-1" | ||
/> | ||
<NButton @click="status.running ? stop() : start()"> | ||
{{ status.running ? 'Stop' : 'Start' }} Slicemachine | ||
</NButton> | ||
</section> | ||
</NCard> | ||
<NCard class="p-4 space-y-4"> | ||
<h2 class="text-m heading"> | ||
<span class="i-carbon:notebook-reference align-sub" /> Documentation | ||
</h2> | ||
<h3>Nuxt</h3> | ||
<p class="flex gap-2 flex-wrap"> | ||
<NButton | ||
to="https://prismic.io/docs/content-modeling" | ||
icon="i-carbon-ruler-alt" | ||
target="_blank" | ||
> | ||
Model Content | ||
</NButton> | ||
<NButton | ||
to="https://prismic.io/docs/nuxt-3-define-routes" | ||
icon="i-carbon-3d-curve-manual" | ||
target="_blank" | ||
> | ||
Define Routes | ||
</NButton> | ||
<NButton | ||
to="https://prismic.io/docs/nuxt-3-fetch-data" | ||
icon="i-carbon-download" | ||
target="_blank" | ||
> | ||
Fetch Data | ||
</NButton> | ||
<NButton | ||
to="https://prismic.io/docs/nuxt-3-template-content" | ||
icon="i-carbon-paint-brush" | ||
target="_blank" | ||
> | ||
Template Content | ||
</NButton> | ||
</p> | ||
<h3>APIs</h3> | ||
<p class="flex gap-2 flex-wrap"> | ||
<NButton | ||
to="https://prismic.io/docs/technical-reference/prismicio-client" | ||
icon="i-carbon-satellite-radar" | ||
target="_blank" | ||
> | ||
@prismicio/client | ||
</NButton> | ||
<NButton | ||
to="https://prismic.io/docs/technical-reference/prismicio-vue" | ||
icon="i-carbon-logo-vue" | ||
target="_blank" | ||
> | ||
@prismicio/vue | ||
</NButton> | ||
<NButton | ||
to="https://prismic.nuxtjs.org/" | ||
icon="i-simple-icons-nuxtdotjs" | ||
target="_blank" | ||
> | ||
@nuxtjs/prismic | ||
</NButton> | ||
</p> | ||
</NCard> | ||
<NCard | ||
v-if="config && 'repositoryName' in config && config.repositoryName" | ||
class="p-4 space-y-4" | ||
> | ||
<h2 class="text-m heading"> | ||
<span class="i-carbon:tools-alt align-sub" /> Repository | ||
</h2> | ||
<p class="flex gap-2 flex-wrap"> | ||
<NButton | ||
:to="`https://${config.repositoryName}.prismic.io/builder/working`" | ||
icon="i-carbon-book" | ||
target="_blank" | ||
> | ||
Documents | ||
</NButton> | ||
<NButton | ||
:to="`https://${config.repositoryName}.prismic.io/builder/medias`" | ||
icon="i-carbon-image" | ||
target="_blank" | ||
> | ||
Media Library | ||
</NButton> | ||
<NButton | ||
:to="`https://${config.repositoryName}.prismic.io/settings/repository`" | ||
icon="i-carbon-settings" | ||
target="_blank" | ||
> | ||
Settings | ||
</NButton> | ||
</p> | ||
</NCard> | ||
</main> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.heading { | ||
@apply font-bold uppercase tracking-wider font-mono; | ||
} | ||
</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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<script setup lang="ts"> | ||
const tree = ref([ | ||
{ title: 'Get Started', redirect: 'https://prismic.io/docs/nuxt-3-setup', icon: 'heroicons-outline:lightning-bolt' }, | ||
{ title: 'Module Reference', redirect: 'https://prismic.io/docs/technical-reference/nuxtjs-prismic/v4', icon: 'heroicons-outline:book-open' }, | ||
]) | ||
</script> | ||
|
||
<template> | ||
<nav> | ||
<ul> | ||
<li | ||
v-for="link in tree" | ||
:key="link.redirect" | ||
> | ||
<NuxtLink | ||
class="link" | ||
:to="link.redirect" | ||
target="_blank" | ||
> | ||
<Icon | ||
:name="link.icon" | ||
/> | ||
{{ link.title }} | ||
</NuxtLink> | ||
</li> | ||
</ul> | ||
</nav> | ||
</template> | ||
|
||
<style scoped lang="ts"> | ||
css({ | ||
nav: { | ||
display: 'none', | ||
'@lg': { | ||
display: 'block' | ||
}, | ||
ul: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
flex: '1', | ||
maxWidth: '100%', | ||
truncate: true, | ||
'& > * + *': { | ||
marginLeft: '{space.2}' | ||
}, | ||
li: { | ||
display: 'inline-flex', | ||
gap: '{space.1}', | ||
}, | ||
'.link': { | ||
display: 'flex', | ||
alignItems: 'center', | ||
gap: '{space.2}', | ||
padding: '{space.2} {space.4}', | ||
fontSize: '{fontSize.sm}', | ||
borderRadius: '{radii.md}', | ||
outline: 'none', | ||
transition: 'background 200ms ease', | ||
svg: { | ||
display: 'inline-block' | ||
}, | ||
'&:active,&.active,&:hover': { | ||
backgroundColor: '{color.gray.100}', | ||
'@dark': { | ||
backgroundColor: '{color.gray.900}', | ||
}, | ||
}, | ||
'&.active': { | ||
boxShadow: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)', | ||
fontWeight: '{fontWeight.semibold}' | ||
} | ||
} | ||
} | ||
} | ||
}) | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<div /> | ||
</template> |
Oops, something went wrong.