Skip to content

Commit

Permalink
docs(new): ui pro docs
Browse files Browse the repository at this point in the history
  • Loading branch information
larbish committed Nov 17, 2023
1 parent ac40bbf commit e29fa93
Show file tree
Hide file tree
Showing 60 changed files with 1,218 additions and 172 deletions.
82 changes: 0 additions & 82 deletions .github/workflows/studio.yml

This file was deleted.

4 changes: 4 additions & 0 deletions docs-old/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
node_modules
.output
.nuxt
8 changes: 8 additions & 0 deletions docs-old/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
root: true,
extends: '@nuxt/eslint-config',
rules: {
'vue/max-attributes-per-line': 'off',
'vue/multi-word-component-names': 'off'
}
}
12 changes: 12 additions & 0 deletions docs-old/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules
*.iml
.idea
*.log*
.nuxt
.vscode
.DS_Store
coverage
dist
sw.*
.env
.output
2 changes: 2 additions & 0 deletions docs-old/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
57 changes: 57 additions & 0 deletions docs-old/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Docus Starter

Starter template for [Docus](https://docus.dev).

## Clone

Clone the repository (using `nuxi`):

```bash
npx nuxi init -t themes/docus
```

## Setup

Install dependencies:

```bash
yarn install
```

## Development

```bash
yarn dev
```

## Edge Side Rendering

Can be deployed to Vercel Functions, Netlify Functions, AWS, and most Node-compatible environments.

Look at all the available presets [here](https://v3.nuxtjs.org/guide/deploy/presets).

```bash
yarn build
```

## Static Generation

Use the `generate` command to build your application.

The HTML files will be generated in the .output/public directory and ready to be deployed to any static compatible hosting.

```bash
yarn generate
```

## Preview build

You might want to preview the result of your build locally, to do so, run the following command:

```bash
yarn preview
```

---

For a detailed explanation of how things work, check out [Docus](https://docus.dev).
57 changes: 57 additions & 0 deletions docs-old/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
export default defineAppConfig({
docus: {
title: 'Nuxt Supabase',
description: 'A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.',
image: '/cover.jpg',

socials: {
twitter: 'nuxt_js',
github: 'nuxt-modules/supabase',
nuxt: {
label: 'Nuxt',
icon: 'simple-icons:nuxtdotjs',
href: 'https://nuxt.com'
},
supabase: {
label: 'Supabase',
icon: 'simple-icons:supabase',
href: 'https://supabase.com'
}
},

github: {
dir: 'docs/content',
branch: 'main',
repo: 'supabase',
owner: 'nuxt-modules',
edit: true
},

aside: {
level: 0,
collapsed: false,
exclude: []
},

main: {
padded: true,
},

header: {
logo: true,
showLinkIcon: true,
exclude: [],
title: 'Nuxt Supabase'
},

footer: {
credits: {
text: 'Made with Nuxt Studio',
icon: 'simple-icons:nuxtdotjs',
href: 'https://nuxt.studio'
}
},

titleTemplate: '%s · Nuxt Supabase'
}
})
File renamed without changes.
19 changes: 19 additions & 0 deletions docs-old/components/content/Releases.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<template>
<div style="margin-top: 50px">
<div v-for="release of releases" :key="release.name" style="margin-bottom: 50px">
<ProseH2 :id="release.name">
{{ release.name }}
<Badge style="margin-left: 10px;">
{{ formatDateByLocale(release.date) }}
</Badge>
</ProseH2>

<ContentRenderer :value="release" />
</div>
</div>
</template>

<script setup lang="ts">
const { fetchReleases } = useGithub()
const { data: releases } = await useAsyncData('releases', () => fetchReleases({}))
</script>
14 changes: 14 additions & 0 deletions docs-old/components/content/VoltaBoard.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<template>
<iframe style="width: 100%; min-height: calc(100vh / 1.5)" :src="src" />
</template>

<script setup lang="ts">
const props = defineProps({
token: {
type: String,
required: true
}
})
const src = computed(() => `https://volta.net/embed/${props.token}`)
</script>
File renamed without changes.
Loading

0 comments on commit e29fa93

Please sign in to comment.