Website Structure

This commit is contained in:
supalerk-ar66 2026-01-13 10:46:40 +07:00
parent 62812f2090
commit 71f0676a62
22365 changed files with 4265753 additions and 791 deletions

View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 - nuxt-contrib
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -0,0 +1,42 @@
# vue-devtools-stub
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions][github-actions-src]][github-actions-href]
[![Codecov][codecov-src]][codecov-href]
Stub package for [`@vue/devtools-api`](https://npmjs.com/package/@vue/devtools-api).
**Why this package:**
Many of Vue 3 libraries use this package internally to integrate with devtools and mostly for development.
While normally an __esm bundler__ version of those libraries allows tree-shaking and opting out, it is not always possible and specially problematic with externalization.
This package mocks same interface of the package.
## 💻 Development
- Clone this repository
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` (use `npm i -g corepack` for Node.js < 16.10)
- Install dependencies using `pnpm install`
- Run interactive tests using `pnpm dev`
## License
Made with 💛
Published under [MIT License](./LICENSE).
<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/vue-devtools-stub?style=flat-square
[npm-version-href]: https://npmjs.com/package/vue-devtools-stub
[npm-downloads-src]: https://img.shields.io/npm/dm/vue-devtools-stub?style=flat-square
[npm-downloads-href]: https://npmjs.com/package/vue-devtools-stub
[github-actions-src]: https://img.shields.io/github/workflow/status/nuxt-contrib/vue-devtools-stub/ci/main?style=flat-square
[github-actions-href]: https://github.com/nuxt-contrib/vue-devtools-stub/actions?query=workflow%3Aci
[codecov-src]: https://img.shields.io/codecov/c/gh/nuxt-contrib/vue-devtools-stub/main?style=flat-square
[codecov-href]: https://codecov.io/gh/nuxt-contrib/vue-devtools-stub

View file

@ -0,0 +1,18 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const setupDevtoolsPlugin = () => {
};
const isPerformanceSupported = () => false;
const now = () => Date.now();
const index = {
setupDevtoolsPlugin,
isPerformanceSupported,
now
};
exports["default"] = index;
exports.isPerformanceSupported = isPerformanceSupported;
exports.now = now;
exports.setupDevtoolsPlugin = setupDevtoolsPlugin;

View file

@ -0,0 +1,10 @@
declare const setupDevtoolsPlugin: () => void;
declare const isPerformanceSupported: () => boolean;
declare const now: () => number;
declare const _default: {
setupDevtoolsPlugin: () => void;
isPerformanceSupported: () => boolean;
now: () => number;
};
export { _default as default, isPerformanceSupported, now, setupDevtoolsPlugin };

View file

@ -0,0 +1,11 @@
const setupDevtoolsPlugin = () => {
};
const isPerformanceSupported = () => false;
const now = () => Date.now();
const index = {
setupDevtoolsPlugin,
isPerformanceSupported,
now
};
export { index as default, isPerformanceSupported, now, setupDevtoolsPlugin };

View file

@ -0,0 +1,41 @@
{
"name": "vue-devtools-stub",
"version": "0.1.0",
"description": "",
"repository": "nuxt-contrib/vue-devtools-stub",
"license": "MIT",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "unbuild",
"dev": "vitest dev",
"lint": "eslint --ext .ts,.js,.mjs,.cjs .",
"prepack": "unbuild",
"release": "pnpm test && standard-version && git push --follow-tags && pnpm publish",
"test": "pnpm lint && vitest run"
},
"dependencies": {},
"devDependencies": {
"@nuxtjs/eslint-config-typescript": "latest",
"@vue/devtools-api": "^6.2.1",
"@vitest/coverage-c8": "latest",
"eslint": "latest",
"standard-version": "latest",
"typescript": "latest",
"unbuild": "latest",
"vitest": "latest"
},
"packageManager": "pnpm@7.8.0"
}