Skip to content

Migrate to vue3 #84

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

Merged
merged 26 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0366eff
Chore: init vue3 migration
Godofbrowser Jul 10, 2024
971b452
Chore: fix vue3 compatibility issues
Godofbrowser Jul 11, 2024
571cc88
Chore: refactor btn enabled to btn visible
Godofbrowser Jul 11, 2024
1bbcbcc
Chore: change array filter idx order
Godofbrowser Jul 11, 2024
5aa9628
Fix: macOS prevent browser exiting fullscreen during escape key-close
Godofbrowser Jul 11, 2024
983c82d
Fix: click is converted to native click on dynamic btn component
Godofbrowser Jul 11, 2024
e425525
Chore: add lib build configuration
Godofbrowser Jul 14, 2024
cf370d4
Chore: add missing prompt dialog features
Godofbrowser Jul 22, 2024
55a29d9
Chore: add more typescript support
Godofbrowser Jul 22, 2024
6c7a07e
Fix(directive): resolve breaking changes in directive related code
Godofbrowser Aug 30, 2024
1d841dc
Fix(directive): respond to updated directive value
Godofbrowser Sep 4, 2024
a4c1a06
Chore: ignore dist-lib folder
Godofbrowser Sep 4, 2024
7210724
Chore(docs): setup vuepress docs
Godofbrowser Sep 4, 2024
b0671d4
Chore(docs): add shiki plugin
Godofbrowser Sep 6, 2024
f959cd1
Chore(build): update output dir
Godofbrowser Sep 6, 2024
df684d3
Chore(plugin): provide $dialog instance
Godofbrowser Sep 6, 2024
b6f7c47
Chore(app): demo app clean-up
Godofbrowser Sep 6, 2024
36fb30a
Chore(docs): add initial documentation content
Godofbrowser Sep 6, 2024
0b9bdb6
Chore(docs): remove temp directories
Godofbrowser Sep 6, 2024
1dc2339
Chore(docs): add examples wrapper and document directive
Godofbrowser Sep 8, 2024
91a096c
Chore(docs): regroup docs
Godofbrowser Sep 8, 2024
e08f3bb
Chore(docs): clear readme file
Godofbrowser Sep 8, 2024
237050b
Chore(docs): update link items
Godofbrowser Sep 8, 2024
bcf42b1
Chore(ts): more ts support
Godofbrowser Sep 11, 2024
59f63de
Chore(ts): house keeping
Godofbrowser Sep 20, 2024
a7ee503
Chore(build): add workflow
Godofbrowser Sep 20, 2024
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
15 changes: 15 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
}
}
51 changes: 51 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: docs

on:
# trigger deployment on every push to main branch
push:
branches: [main]
# trigger deployment manually
workflow_dispatch:

jobs:
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
# fetch all commits to get last updated time or other git log info
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
# choose pnpm version to use
version: 8
# install deps with pnpm
run_install: true

- name: Setup Node.js
uses: actions/setup-node@v4
with:
# choose node.js version to use
node-version: 20
# cache deps for pnpm
cache: pnpm

# run build script
- name: Build VuePress site
run: pnpm docs:build

# please check out the docs of the workflow for more details
# @see https://github.com/crazy-max/ghaction-github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
# deploy to gh-pages branch
target_branch: gh-pages
# deploy the default output dir of VuePress
build_dir: docs/.vuepress/dist
env:
# @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
dist-app
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*.tsbuildinfo
16 changes: 8 additions & 8 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.idea
.gitignore
node_modules/
src/
docs/
test/
*.log
.tmp
# Ignore everything
*

# Don't ignore the dist/ folder's content
!dist/*

# Don't ignore the package.json file
!package.json
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.17.0
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}
20 changes: 0 additions & 20 deletions LICENSE

This file was deleted.

Loading