first commit

This commit is contained in:
monjack
2025-06-20 18:01:48 +08:00
commit 6daa6d65c1
24611 changed files with 2512443 additions and 0 deletions

24
app_vue/node_modules/dotenv-expand/LICENSE generated vendored Normal file
View File

@ -0,0 +1,24 @@
Copyright (c) 2016, Scott Motte
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

36
app_vue/node_modules/dotenv-expand/README.md generated vendored Normal file
View File

@ -0,0 +1,36 @@
# dotenv-expand
<img src="https://raw.githubusercontent.com/motdotla/dotenv-expand/master/dotenv-expand.png" alt="dotenv-expand" align="right" />
Dotenv-expand adds variable expansion on top of
[dotenv](http://github.com/motdotla/dotenv). If you find yourself needing to
expand environment variables already existing on your machine, then
dotenv-expand is your tool.
[![BuildStatus](https://img.shields.io/travis/motdotla/dotenv-expand/master.svg?style=flat-square)](https://travis-ci.org/motdotla/dotenv-expand)
[![NPM version](https://img.shields.io/npm/v/dotenv-expand.svg?style=flat-square)](https://www.npmjs.com/package/dotenv-expand)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
## Install
```bash
npm install dotenv --save
npm install dotenv-expand --save
```
## Usage
As early as possible in your application, require dotenv and dotenv-expand, and
wrap dotenv-expand around dotenv.
```js
var dotenv = require('dotenv')
var dotenvExpand = require('dotenv-expand')
var myEnv = dotenv.config()
dotenvExpand(myEnv)
```
See [test/.env](./test/.env) for examples of variable expansion in your `.env`
file.

BIN
app_vue/node_modules/dotenv-expand/dotenv-expand.png generated vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

15
app_vue/node_modules/dotenv-expand/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,15 @@
export = dotenv_expand;
interface DotenvResult {
error?: Error;
parsed?: {
[name: string]: string;
};
}
declare function dotenv_expand(config: DotenvResult): DotenvResult;
declare namespace dotenv_expand {
const prototype: {
};
}

46
app_vue/node_modules/dotenv-expand/lib/main.js generated vendored Normal file
View File

@ -0,0 +1,46 @@
'use strict'
var dotenvExpand = function (config) {
// if ignoring process.env, use a blank object
var environment = config.ignoreProcessEnv ? {} : process.env
var interpolate = function (envValue) {
var matches = envValue.match(/(.?\${?(?:[a-zA-Z0-9_]+)?}?)/g) || []
return matches.reduce(function (newEnv, match) {
var parts = /(.?)\${?([a-zA-Z0-9_]+)?}?/g.exec(match)
var prefix = parts[1]
var value, replacePart
if (prefix === '\\') {
replacePart = parts[0]
value = replacePart.replace('\\$', '$')
} else {
var key = parts[2]
replacePart = parts[0].substring(prefix.length)
// process.env value 'wins' over .env file's value
value = environment.hasOwnProperty(key) ? environment[key] : (config.parsed[key] || '')
// Resolve recursive interpolations
value = interpolate(value)
}
return newEnv.replace(replacePart, value)
}, envValue)
}
for (var configKey in config.parsed) {
var value = environment.hasOwnProperty(configKey) ? environment[configKey] : config.parsed[configKey]
config.parsed[configKey] = interpolate(value)
}
for (var processKey in config.parsed) {
environment[processKey] = config.parsed[processKey]
}
return config
}
module.exports = dotenvExpand

25
app_vue/node_modules/dotenv-expand/package.json generated vendored Normal file
View File

@ -0,0 +1,25 @@
{
"name": "dotenv-expand",
"version": "5.1.0",
"description": "Expand environment variables using dotenv",
"main": "lib/main.js",
"scripts": {
"test": "lab test/* --coverage",
"posttest": "npm run lint",
"lint": "standard"
},
"keywords": [
"dotenv",
"expand",
"variables"
],
"author": "motdotla",
"license": "BSD-2-Clause",
"devDependencies": {
"dotenv": "^4.0.0",
"lab": "^13.0.1",
"should": "^11.2.1",
"standard": "^9.0.2"
},
"types": "./index.d.ts"
}