-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redirect to repo on click code icon (#11)
* Redirect to repo on click code icon * Add pages support
- Loading branch information
1 parent
2d466bb
commit d3c25b0
Showing
7 changed files
with
48 additions
and
9 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,29 @@ | ||
name: Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
name: Pages | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Build for pages | ||
run: npm run build:pages | ||
- name: Deploy | ||
uses: crazy-max/ghaction-github-pages@v2 | ||
with: | ||
target_branch: gh-pages | ||
build_dir: playground/dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import type { Example } from '../../types'; | ||
import { nanoid } from 'nanoid'; | ||
import { defineAsyncComponent } from 'vue'; | ||
import code from './index.vue?raw'; | ||
|
||
const keyboardExample: Example = { | ||
id: nanoid(), | ||
title: 'Keyboard Support', | ||
component: defineAsyncComponent(() => import('./index.vue')), | ||
code, | ||
repoLink: | ||
'https://github.com/kadiryazici/vue-selectable-items/tree/main/playground/examples/keyboard', | ||
}; | ||
|
||
export default keyboardExample; |
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,13 +1,13 @@ | ||
import type { Example } from '../../types'; | ||
import { nanoid } from 'nanoid'; | ||
import { defineAsyncComponent } from 'vue'; | ||
import code from './index.vue?raw'; | ||
|
||
const nestedExample: Example = { | ||
id: nanoid(), | ||
title: 'Nested Items', | ||
component: defineAsyncComponent(() => import('./index.vue')), | ||
code, | ||
repoLink: | ||
'https://github.com/kadiryazici/vue-selectable-items/tree/main/playground/examples/nested', | ||
}; | ||
|
||
export default nestedExample; |
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