Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(talk): complete talk #6

Merged
merged 1 commit into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions alias.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import path from 'node:path'

export const r = (p: string) => path.resolve(__dirname, p)

export const alias = {
'magic-color': r('./packages/magic-color/src/index.ts'),
}
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,20 @@
"prepare": "simple-git-hooks",
"play": "pnpm -C playground dev",
"play:build": "pnpm -C playground build",
"talk": "pnpm -C talk dev",
"talk:build": "pnpm -C talk build",
"deploy": "nr play:build"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.2",
"@antfu/ni": "^0.21.12",
"@iconify-json/akar-icons": "^1.1.24",
"@iconify-json/carbon": "^1.1.31",
"@iconify-json/fluent-emoji": "^1.1.18",
"@iconify-json/logos": "^1.1.42",
"@iconify/utils": "^2.1.22",
"@types/node": "^20.10.7",
"@unocss/preset-mini": "^0.59.0",
"bumpp": "^9.2.1",
"eslint": "^8.56.0",
"esno": "^4.0.0",
Expand Down
7 changes: 2 additions & 5 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import path from 'node:path'

Check failure on line 1 in playground/vite.config.ts

View workflow job for this annotation

GitHub Actions / lint

'path' is defined but never used
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import UnoCSS from 'unocss/vite'
import Components from 'unplugin-vue-components/vite'
import AutoImport from 'unplugin-auto-import/vite'

const r = (p: string) => path.resolve(__dirname, p)
import { alias } from '../alias'

// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
'magic-color': r('../packages/magic-color/src/index.ts'),
},
alias,
},
plugins: [
vue(),
Expand Down
28 changes: 27 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions talk/.slidev/drawings/slides/1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions talk/components/Avatar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<template>
<div fbc mb-10>
<h1>Chris</h1>
<img
src="/avatar.png" alt="Avatar" w-30 aspect-square
rd="[62%_47%_82%_35%/45%_45%_80%_66%]" will-change="border-radius,transform,opacity" animate-shape
>
</div>
</template>
8 changes: 8 additions & 0 deletions talk/components/icons/IconsBilibili.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<template>
<div inline-block space-x-1 select-none>
<a linkWithIcon o-bilibili href="https://space.bilibili.com/402454160" target="_blank">
Uploader
<i i-ri-bilibili-line />
</a>
</div>
</template>
10 changes: 10 additions & 0 deletions talk/components/icons/IconsElk.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<template>
<div inline-block space-x-1 select-none>
<i i-my-logos-elk />
<!-- <img w="1.2em" h="1.2em" src="/logos/onu-ui.svg" alt="" srcset=""> -->
<a linkWithIcon o-elk href="https://github.com/elk-zone" target="_blank">
<strong>Elk</strong>
<sub bottom-0>farm</sub>
</a>
</div>
</template>
6 changes: 6 additions & 0 deletions talk/components/icons/IconsNuxt.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<template>
<div inline-block space-x-1 select-none>
<i i-logos-nuxt-icon />
<a linkWithIcon o-nuxt href="https://github.com/nuxt/nuxt" target="_blank">Nuxt</a>
</div>
</template>
11 changes: 11 additions & 0 deletions talk/components/icons/IconsOnuUI.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<div inline-block space-x-1 select-none>
<i i-my-logos-onu-ui />
<a
trans linear-text shape-bl o-onuui-to from-onuui-from to-onuui-to
href="https://github.com/onu-ui" target="_blank"
>
<strong>Onu UI</strong>
</a>
</div>
</template>
11 changes: 11 additions & 0 deletions talk/components/icons/IconsUnPreset.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<div inline-block space-x-1 select-none>
<i i-my-logos-unpreset />
<a
trans linear-text shape-bl o-unpreset-to from-unpreset-from to-unpreset-to href="https://github.com/unpreset"
target="_blank"
>
<strong>UnPreset</strong>
</a>
</div>
</template>
11 changes: 11 additions & 0 deletions talk/components/icons/IconsUnoCSS.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<div inline-flex space-x-1 select-none>
<i i-logos-unocss />
<a
trans linear-text shape-bl o-unocss from-unocss-from via-unocss-via to-unocss-to
href="https://github.com/unocss/unocss" target="_blank"
>
<strong> UnoCSS</strong>
</a>
</div>
</template>
11 changes: 11 additions & 0 deletions talk/components/icons/IconsVite.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<div inline-block space-x-1 select-none>
<i i-logos-vitejs />
<a
trans linear-text shape-bottom-right o-vite-to from-vite-from to-vite-to href="https://github.com/vitejs/vite"
target="_blank"
>
Vite
</a>
</div>
</template>
6 changes: 6 additions & 0 deletions talk/components/icons/IconsVue.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<template>
<div inline-block space-x-1 select-none>
<i i-logos-vue />
<a linkWithIcon o-vue href="https://github.com/vuejs-translations/docs-zh-cn" target="_blank">Vue</a>
</div>
</template>
27 changes: 0 additions & 27 deletions talk/pages/multiple-entries.md

This file was deleted.

Binary file added talk/public/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions talk/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions talk/public/logos/elk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions talk/public/logos/onu-ui.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions talk/public/logos/unocss.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions talk/public/logos/unpreset.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading