Skip to content

Commit

Permalink
chore: pkg meta
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed May 10, 2024
1 parent 7b8d9c3 commit c69ec7e
Show file tree
Hide file tree
Showing 9 changed files with 437 additions and 742 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "istanbul-toolkit",
"version": "0.0.0",
"private": true,
"description": "istanbul toolkit",
"type": "module",
Expand Down Expand Up @@ -33,14 +32,15 @@
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^19.3.0",
"@minko-fe/commitlint-config": "^2.0.7",
"@minko-fe/eslint-config": "^2.2.2",
"@minko-fe/prettier-config": "^2.2.0",
"@minko-fe/tsconfig": "^2.0.8",
"conventional-changelog-cli": "^4.1.0",
"@minko-fe/eslint-config": "^3.2.0",
"@minko-fe/prettier-config": "^2.2.2",
"@minko-fe/tsconfig": "^2.1.0",
"eslint": "^8.57.0",
"nyc": "^15.1.0",
"prettier-plugin-astro": "^0.13.0",
"prettier-plugin-tailwindcss": "^0.5.14",
"simple-git-hooks": "^2.11.1",
"taze": "^0.13.7",
"taze": "^0.13.8",
"tsup": "^8.0.2",
"turbo": "^1.13.3",
"typescript": "^5.4.5"
Expand Down
3 changes: 3 additions & 0 deletions packages/istanbul-server-middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "istanbul-server-middleware",
"version": "1.1.0",
"homepage": "https://github.com/hemengke1997/istanbul-toolkit/tree/master/packages/istanbul-server-middleware",
"repository": {
"url": "https://github.com/hemengke1997/istanbul-toolkit/tree/master/packages/istanbul-server-middleware"
},
"files": [
"dist",
"ecosystem.config.js"
Expand Down
8 changes: 8 additions & 0 deletions packages/istanbul-widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
"name": "istanbul-widget",
"version": "1.5.4",
"type": "module",
"keywords": [
"istanbul",
"widget",
"web istanbul"
],
"homepage": "https://github.com/hemengke1997/istanbul-toolkit/tree/master/packages/istanbul-widget",
"repository": {
"url": "https://github.com/hemengke1997/istanbul-toolkit/tree/master/packages/istanbul-widget"
},
"files": [
"components.d.ts",
"dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/istanbul-widget/src/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class IstanbulWidget {
this._addBuiltInPlugins()

// try to init
const _onload = async () => {
const _onload = () => {
if (this.isInited) {
return
}
Expand Down Expand Up @@ -96,7 +96,7 @@ export class IstanbulWidget {
}
}

private async _initComponent() {
private _initComponent() {
if (!$.one(`#${ISTANBUL_WIDGET_ID}`)) {
let target: HTMLElement = document.body
if (typeof this.option.target === 'string') {
Expand Down
10 changes: 10 additions & 0 deletions packages/vite-plugin-istanbul-widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@
"name": "vite-plugin-istanbul-widget",
"version": "1.5.6",
"type": "module",
"keywords": [
"istanbul",
"widget",
"web istanbul",
"vite-plugin-istanbul",
"vite-plugin-istanbul-widget"
],
"homepage": "https://github.com/hemengke1997/istanbul-toolkit/tree/master/packages/vite-plugin-istanbul-widget",
"repository": {
"url": "https://github.com/hemengke1997/istanbul-toolkit/tree/master/packages/vite-plugin-istanbul-widget"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
104 changes: 52 additions & 52 deletions playground/astro3-app/src/components/Card.astro
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
---
interface Props {
title: string;
body: string;
href: string;
title: string
body: string
href: string
}
const { href, title, body } = Astro.props;
const { href, title, body } = Astro.props
---

<li class="link-card">
<a href={href}>
<h2>
{title}
<span>&rarr;</span>
</h2>
<p>
{body}
</p>
</a>
<li class='link-card'>
<a href={href}>
<h2>
{title}
<span>&rarr;</span>
</h2>
<p>
{body}
</p>
</a>
</li>
<style>
.link-card {
list-style: none;
display: flex;
padding: 1px;
background-color: #23262d;
background-image: none;
background-size: 400%;
border-radius: 7px;
background-position: 100%;
transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.link-card > a {
width: 100%;
text-decoration: none;
line-height: 1.4;
padding: calc(1.5rem - 1px);
border-radius: 8px;
color: white;
background-color: #23262d;
opacity: 0.8;
}
h2 {
margin: 0;
font-size: 1.25rem;
transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
p {
margin-top: 0.5rem;
margin-bottom: 0;
}
.link-card:is(:hover, :focus-within) {
background-position: 0;
background-image: var(--accent-gradient);
}
.link-card:is(:hover, :focus-within) h2 {
color: rgb(var(--accent-light));
}
.link-card {
list-style: none;
display: flex;
padding: 1px;
background-color: #23262d;
background-image: none;
background-size: 400%;
border-radius: 7px;
background-position: 100%;
transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.link-card > a {
width: 100%;
text-decoration: none;
line-height: 1.4;
padding: calc(1.5rem - 1px);
border-radius: 8px;
color: white;
background-color: #23262d;
opacity: 0.8;
}
h2 {
margin: 0;
font-size: 1.25rem;
transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
p {
margin-top: 0.5rem;
margin-bottom: 0;
}
.link-card:is(:hover, :focus-within) {
background-position: 0;
background-image: var(--accent-gradient);
}
.link-card:is(:hover, :focus-within) h2 {
color: rgb(var(--accent-light));
}
</style>
77 changes: 36 additions & 41 deletions playground/astro3-app/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,51 +1,46 @@
---
interface Props {
title: string;
title: string
}
const { title } = Astro.props;
const { title } = Astro.props
---

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
<body>
<slot />
</body>
<html lang='en'>
<head>
<meta charset='UTF-8' />
<meta name='description' content='Astro description' />
<meta name='viewport' content='width=device-width' />
<link rel='icon' type='image/svg+xml' href='/favicon.svg' />
<meta name='generator' content={Astro.generator} />
<title>{title}</title>
</head>
<body>
<slot />
</body>
</html>
<style is:global>
:root {
--accent: 136, 58, 234;
--accent-light: 224, 204, 250;
--accent-dark: 49, 10, 101;
--accent-gradient: linear-gradient(
45deg,
rgb(var(--accent)),
rgb(var(--accent-light)) 30%,
white 60%
);
}
html {
font-family: system-ui, sans-serif;
background: #13151a;
background-size: 224px;
}
code {
font-family:
Menlo,
Monaco,
Lucida Console,
Liberation Mono,
DejaVu Sans Mono,
Bitstream Vera Sans Mono,
Courier New,
monospace;
}
:root {
--accent: 136, 58, 234;
--accent-light: 224, 204, 250;
--accent-dark: 49, 10, 101;
--accent-gradient: linear-gradient(45deg, rgb(var(--accent)), rgb(var(--accent-light)) 30%, white 60%);
}
html {
font-family: system-ui, sans-serif;
background: #13151a;
background-size: 224px;
}
code {
font-family:
Menlo,
Monaco,
Lucida Console,
Liberation Mono,
DejaVu Sans Mono,
Bitstream Vera Sans Mono,
Courier New,
monospace;
}
</style>
Loading

0 comments on commit c69ec7e

Please sign in to comment.