-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
36 changed files
with
788 additions
and
55 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.vitebook/.cache | ||
.vitebook/.temp | ||
coverage | ||
dist | ||
node_modules | ||
|
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,15 @@ | ||
<template> | ||
<component :is="component" /> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import type { App, Component } from 'vue'; | ||
export async function configureApp(app: App) {} | ||
</script> | ||
|
||
<script setup lang="ts"> | ||
const { component } = defineProps<{ | ||
component: Component; | ||
}>(); | ||
</script> |
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,46 @@ | ||
import vue from '@vitejs/plugin-vue'; | ||
import { defineConfig, clientPlugin } from '@vitebook/client/node'; | ||
import { vuePlugin } from '@vitebook/vue/node'; | ||
import { vueMarkdownPlugin } from '@vitebook/markdown-vue/node'; | ||
import { shikiMarkdownPlugin } from '@vitebook/markdown-shiki/node'; | ||
import { | ||
DefaultThemeConfig, | ||
defaultThemePlugin, | ||
} from '@vitebook/theme-default/node'; | ||
|
||
export default defineConfig<DefaultThemeConfig>({ | ||
include: [ | ||
'src/components/**/**/*.md', | ||
'src/components/**/**/*.story.vue', | ||
'src/modules/**/**/**/*.md', | ||
'src/modules/**/**/**/*.story.vue', | ||
'src/styles/**/*.md', | ||
], | ||
/** | ||
* DESC: | ||
* override vite.config.ts | ||
*/ | ||
vite: { | ||
plugins: [], | ||
optimizeDeps: {}, | ||
build: {}, | ||
test: {} | ||
}, | ||
plugins: [ | ||
shikiMarkdownPlugin(), | ||
vueMarkdownPlugin(), | ||
vuePlugin({ appFile: 'app.vue' }), | ||
clientPlugin(), | ||
defaultThemePlugin(), | ||
vue({ include: /\.(md|vue)/ }), | ||
], | ||
site: { | ||
title: 'Vivu', | ||
description: 'Opinionated scalable vue boilerplate using vite.', | ||
theme: { | ||
remoteGitRepo: { | ||
url: 'logustra/vivu', | ||
}, | ||
}, | ||
}, | ||
}); |
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,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ lang }}"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1" /> | ||
<meta name="generator" content="vitebook@{{ version }}" /> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" /> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" /> | ||
<link rel="manifest" href="/manifest.json" /> | ||
<!--@vitebook/head--> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="app"><!--@vitebook/app--></div> | ||
<!--@vitebook/body--> | ||
</body> | ||
</html> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,20 @@ | ||
{ | ||
"short_name": "Vitebook", | ||
"name": "Vitebook Site", | ||
"icons": [ | ||
{ | ||
"src": "logo-192x192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "logo-512x512.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#ffc107", | ||
"background_color": "#212121" | ||
} |
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 @@ | ||
# https://www.robotstxt.org/robotstxt.html | ||
User-agent: * | ||
Disallow: |
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 @@ | ||
import Theme from '@vitebook/theme-default'; | ||
|
||
export default Theme; |
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.