Skip to content

Commit

Permalink
feat: update pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Sep 5, 2023
1 parent e89239e commit 99b9d8a
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 39 deletions.
17 changes: 16 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
"Meraid",
"mockjs",
"mpetazzoni",
"noopener",
"noreferrer",
"portfinder",
"preinstall",
"purgecss",
Expand All @@ -68,5 +70,18 @@
"xihu",
"Zhong",
"zhonghuamen"
]
],
"eslint.codeActionsOnSave.rules": null,
"eslint.run": "onType",
"eslint.options": {
"extensions": [
".js",
".vue",
".jsx",
".tsx"
]
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
23 changes: 11 additions & 12 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@
"react-icons": "^4.10.1",
"react-loading-skeleton": "^3.3.1",
"react-markdown": "^8.0.7",
"react-parallax-tilt": "^1.7.164",
"react-player": "^2.12.0",
"react-qr-code": "^2.0.11",
"react-redux": "^8.1.1",
Expand All @@ -271,7 +272,6 @@
"react-scroll-to-bottom": "^4.2.0",
"react-sticky": "^6.0.3",
"react-sticky-ts": "^1.0.7",
"react-tilt": "^1.0.2",
"remark-gfm": "^3.0.1",
"remove-markdown": "^0.5.0",
"sanitize.css": "^13.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/layout/primaryNav/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const PrimaryNav = () => {
const redirectTo = (path) => {
navigate(path)
}
const goToSkylin = () => {
const goToWkylin = () => {
window.open(`https://skyline.github.com/wkylin/${new Date().getFullYear() - 1}`, '_blank')
}

Expand All @@ -18,7 +18,7 @@ const PrimaryNav = () => {
<Button type="link" icon={<CodeOutlined />} onClick={() => redirectTo('dashboard')}>
多路由设置
</Button>
<Button type="link" icon={<TeamOutlined />} onClick={goToSkylin}>
<Button type="link" icon={<TeamOutlined />} onClick={goToWkylin}>
Skyline for wkylin.w
</Button>
</Space>
Expand Down
30 changes: 7 additions & 23 deletions src/pages/tilt/index.jsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,17 @@
import React from 'react'
import FixTabPanel from '@stateless/FixTabPanel'
import { Tilt } from 'react-tilt'
import wkylinPng from '@assets/images/wkylin.png'
import Tilt from 'react-parallax-tilt'

const defaultOptions = {
reverse: false, // reverse the tilt direction
max: 35, // max tilt rotation (degrees)
perspective: 1000, // Transform perspective, the lower the more extreme the tilt gets.
scale: 1.1, // 2 = 200%, 1.5 = 150%, etc..
speed: 1000, // Speed of the enter/exit transition
transition: true, // Set a transition on enter/exit.
axis: null, // What axis should be disabled. Can be X or Y.
reset: true, // If the tilt effect has to be reset on exit.
easing: 'cubic-bezier(.03,.98,.52,.99)', // Easing on enter/exit.
}
import wkylinPng from '@assets/images/wkylin.png'

const ReactTilt = () => (
<FixTabPanel>
<h3>Welcome to react tilt!</h3>
<Tilt
options={defaultOptions}
className="bg-[#55467c] p-2 rounded-2xl w-full flex items-center justify-center"
style={{ height: 248, width: 248 }}
>
<div className="text-white">
<img src={wkylinPng} alt="wkylin.w" />
<h2>wkylin.w</h2>
</div>
</Tilt>
<section style={{ width: 200, height: 200 }}>
<Tilt tiltMaxAngleX={40} tiltMaxAngleY={40} perspective={1000} scale={1.1} glareEnable={true}>
<img src={wkylinPng} alt="wkylin.w" width="200" height="200" />
</Tilt>
</section>
</FixTabPanel>
)

Expand Down

1 comment on commit 99b9d8a

@vercel
Copy link

@vercel vercel bot commented on 99b9d8a Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pro-react-admin – ./

pro-react-admin.vercel.app
pro-react-admin-git-main-wkylin.vercel.app
pro-react-admin-wkylin.vercel.app

Please sign in to comment.