Compare commits
2 Commits
eb410a3b5f
...
1bfb5d214b
Author | SHA1 | Date |
---|---|---|
puq29skha | 1bfb5d214b | 1 day ago |
唐雨静 | 70715ffe21 | 1 day ago |
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 416 KiB |
@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
"presets": [
|
||||
"@vue/cli-plugin-babel/preset"
|
||||
],
|
||||
"plugins": [
|
||||
[
|
||||
"component",
|
||||
{
|
||||
"libraryName": "element-ui",
|
||||
"styleLibraryName": "theme-chalk"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
module.exports = {
|
||||
status:200,
|
||||
data:[
|
||||
{
|
||||
id:1,
|
||||
title:'高姿 COGI匀净亮白保湿十全十美套盒基础护肤品套装补水礼盒美白',
|
||||
pic:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409291612009.jpeg',
|
||||
|
||||
pic1:'https://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2019/11/12/23/73edc517-fcfa-4a21-99d6-d248d67e10dd_420_531.jpg',
|
||||
author:'Asura',
|
||||
},
|
||||
{
|
||||
id:2,
|
||||
title:'法尔曼/法儿曼骨胶原修护面膜、强烈安利',
|
||||
pic1:'https://g-search2.alicdn.com/img/bao/uploaded/i4/i1/420250512/O1CN01xKJUDT1FeXMm8Tk2k_!!0-item_pic.jpg_250x250.jpg_.webp',
|
||||
pic:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409291611187.jpeg',
|
||||
|
||||
author:'花之伶',
|
||||
},
|
||||
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
module.exports = {
|
||||
status:200,
|
||||
data:[
|
||||
{
|
||||
id:1001,
|
||||
pic:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241719043.jpeg',
|
||||
author:'Another',
|
||||
time:'09月24日16:22',
|
||||
fans:217,
|
||||
img:'https://res.gucci.cn/resources/2019/11/29/15749643001942914_g_800X800.jpg',
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
module.exports={
|
||||
status:200,
|
||||
data:[
|
||||
{
|
||||
title:'彩妆界的奢侈品-Dior',
|
||||
talk:239,
|
||||
hot:34869,
|
||||
pic:'https://d.vpimg1.com/upcb/2020/01/19/128/ias_a041a584-4d3b-4d1f-8e58-233e1872c136_570x273_90.jpg'
|
||||
},
|
||||
{
|
||||
title:'不管-就是喜欢YSL',
|
||||
talk:189,
|
||||
hot:23400,
|
||||
pic:'https://d.vpimg1.com/upcb/2020/02/17/50/ias_33ed2745-cd62-4876-be5c-a3a3331315d6_570x273_90.jpg'
|
||||
},
|
||||
{
|
||||
title:'彩妆界的奢侈品-Dior',
|
||||
talk:239,
|
||||
hot:34869,
|
||||
pic:'https://d.vpimg1.com/upcb/2020/01/19/128/ias_a041a584-4d3b-4d1f-8e58-233e1872c136_570x273_90.jpg'
|
||||
},
|
||||
]
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
module.exports ={
|
||||
status:200,
|
||||
type:2,
|
||||
data:[
|
||||
{
|
||||
id:10002,
|
||||
user:{
|
||||
name:'蕊儿',
|
||||
msg:{
|
||||
age:'18',
|
||||
sex:'女',
|
||||
jifu:'混合型肌肤'
|
||||
},
|
||||
image:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409291611187.jpeg'
|
||||
},
|
||||
guanzhu:true,
|
||||
|
||||
},
|
||||
{
|
||||
id:10005,
|
||||
user:{
|
||||
name:'咪蒙',
|
||||
msg:{
|
||||
age:'25',
|
||||
sex:'女',
|
||||
jifu:'混合型肌肤'
|
||||
},
|
||||
image:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241718425.jpeg'
|
||||
},
|
||||
guanzhu:true
|
||||
},
|
||||
{
|
||||
id:10006,
|
||||
user:{
|
||||
name:'Lucy',
|
||||
msg:{
|
||||
age:'27',
|
||||
sex:'女',
|
||||
},
|
||||
image:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241717213.jpeg'
|
||||
},
|
||||
guanzhu:false
|
||||
},
|
||||
{
|
||||
id:10007,
|
||||
user:{
|
||||
name:'Lily',
|
||||
msg:{
|
||||
age:'24',
|
||||
sex:'女',
|
||||
jifu:'混合型肌肤'
|
||||
},
|
||||
image:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409291612009.jpeg'
|
||||
},
|
||||
guanzhu:false
|
||||
},
|
||||
{
|
||||
id:10008,
|
||||
user:{
|
||||
name:'泡泡',
|
||||
msg:{
|
||||
age:'23',
|
||||
sex:'女',
|
||||
},
|
||||
image:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409291613120.jpeg'
|
||||
},
|
||||
guanzhu:false
|
||||
},
|
||||
|
||||
]
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
module.exports ={
|
||||
status:200,
|
||||
type:1,
|
||||
data:[
|
||||
{
|
||||
id:10002,
|
||||
user:{
|
||||
name:'蕊儿',
|
||||
msg:{
|
||||
age:'18',
|
||||
sex:'女',
|
||||
jifu:'混合型肌肤'
|
||||
},
|
||||
image:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409291612009.jpeg'
|
||||
},
|
||||
guanzhu:true
|
||||
},
|
||||
{
|
||||
id:10003,
|
||||
user:{
|
||||
name:'苪儿',
|
||||
msg:{
|
||||
age:'20',
|
||||
sex:'女',
|
||||
jifu:'混合型肌肤'
|
||||
},
|
||||
image:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241718425.jpeg'
|
||||
},
|
||||
guanzhu:true
|
||||
},
|
||||
{
|
||||
id:10004,
|
||||
user:{
|
||||
name:'丫丫',
|
||||
msg:{
|
||||
age:'23',
|
||||
sex:'女',
|
||||
},
|
||||
image:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409291611187.jpeg'
|
||||
},
|
||||
guanzhu:true
|
||||
},
|
||||
{
|
||||
id:10005,
|
||||
user:{
|
||||
name:'咪蒙',
|
||||
msg:{
|
||||
age:'25',
|
||||
sex:'女',
|
||||
jifu:'混合型肌肤'
|
||||
},
|
||||
image:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409291613120.jpeg'
|
||||
},
|
||||
guanzhu:true
|
||||
},
|
||||
|
||||
]
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
module.exports = {
|
||||
status:200,
|
||||
data:[
|
||||
{
|
||||
id:1,
|
||||
title:'高姿 COGI匀净亮白保湿十全十美套盒基础护肤品套装补水礼盒美白',
|
||||
pic:'https://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2019/11/12/23/73edc517-fcfa-4a21-99d6-d248d67e10dd_420_531.jpg',
|
||||
author:'Asura',
|
||||
},
|
||||
{
|
||||
id:2,
|
||||
title:'法尔曼/法儿曼骨胶原修护面膜、强烈安利',
|
||||
pic:'https://g-search2.alicdn.com/img/bao/uploaded/i4/i1/420250512/O1CN01xKJUDT1FeXMm8Tk2k_!!0-item_pic.jpg_250x250.jpg_.webp',
|
||||
author:'花之伶7055',
|
||||
},
|
||||
{
|
||||
id:3,
|
||||
title:'黑五Eve Lom卸妆膏200ml含2条洁面巾 经典洁颜膏',
|
||||
pic:'https://g-search2.alicdn.com/img/bao/uploaded/i4/i3/704040247/O1CN01Zcfoh81DhAOBcKr2b_!!704040247.png_250x250.jpg_.webp',
|
||||
author:'低调的cop2',
|
||||
},
|
||||
{
|
||||
id:4,
|
||||
title:'Kiehls/科颜氏 集焕白亮肤淡斑精华液100ml 保湿美白淡斑',
|
||||
pic:'https://g-search2.alicdn.com/img/bao/uploaded/i4/i3/143651606/O1CN011NjaYBhkhlczpMk_!!143651606.jpg_250x250.jpg_.webp',
|
||||
author:'seven7jing',
|
||||
},
|
||||
]
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
status:200,
|
||||
data:[
|
||||
{
|
||||
id:1,
|
||||
title:'香奈儿五号香水',
|
||||
price:'598',
|
||||
address:'天猫',
|
||||
img:'https://img.alicdn.com/bao/uploaded/i2/4207517744/O1CN01Mw4d07274ncK13BOv_!!4207517744.jpg'
|
||||
},
|
||||
{
|
||||
id:2,
|
||||
title:'香奈儿丝绒口红',
|
||||
price:'598',
|
||||
address:'天猫',
|
||||
img:'https://img.alicdn.com/imgextra/i1/251970057/O1CN01ULf0XV1CI99qEMT7Y_!!0-saturn_solar.jpg_220x220.jpg'
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
module.exports={
|
||||
status:200,
|
||||
data:[
|
||||
{
|
||||
id:101,
|
||||
title:'迪奥烈艳蓝金哑光唇膏 999',
|
||||
image:'http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2020/02/20/118/13f5cc79-9283-4225-b6ad-17834512a18a-50_420_531.jpg',
|
||||
cankao_price:'¥299/只',
|
||||
gongxiao:'滋,提亮肤色',
|
||||
zhuanggan:'自然',
|
||||
season:'春、夏、秋、冬',
|
||||
volume:'3.5g',
|
||||
otherWeb:[
|
||||
{
|
||||
name:'天天网',
|
||||
price:'¥150.00',
|
||||
shop:'¥300.00',
|
||||
comment_num:12312
|
||||
},
|
||||
{
|
||||
name:'淘宝网',
|
||||
price:'¥170.00',
|
||||
shop:'¥300.00',
|
||||
comment_num:12312
|
||||
}
|
||||
],
|
||||
comment:{
|
||||
star:'4.0',
|
||||
user:[
|
||||
{
|
||||
id:5,
|
||||
head:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241717213.jpeg',
|
||||
name:'徐娇',
|
||||
msg:'第一次买大牌口红,因为平时很少化妆所以也不会用口红。只是突然觉得好像女人没有口红真的没点女人样,所以就买了一只来用用。收到货试了一下还挺好看的,希望是正品吧,现在都喜欢在唯品会上买东西。反正颜色很满意,物流给力,快递小哥服务也很好。'
|
||||
|
||||
},
|
||||
{
|
||||
id:6,
|
||||
head:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241718425.jpeg',
|
||||
name:'丫丫',
|
||||
msg:'一直用圣罗兰的,妹妹说这个款式不错,很火,就买了三只试试,颜色是我想要的,有股淡淡的香味,不是特别浓,很喜欢,涂上去保持的时间还是挺长的,嘴巴也不会很干,大爱'
|
||||
|
||||
}
|
||||
|
||||
]
|
||||
},
|
||||
topic:[
|
||||
{
|
||||
id:1,
|
||||
user:'LiLi',
|
||||
image:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241720003.jpeg',
|
||||
head:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241717213.jpeg',
|
||||
collect:1365
|
||||
},
|
||||
{
|
||||
id:2,
|
||||
user:'Lucy',
|
||||
image:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241722752.jpeg',
|
||||
head:'https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241719043.jpeg',
|
||||
collect:2066
|
||||
}
|
||||
],
|
||||
related:[
|
||||
{
|
||||
id:102,
|
||||
name:'【璀璨星耀升级小黑管】红唇焰舞口红滋润烂番茄锦鲤色3.8g',
|
||||
image:'https://a.vpimg4.com/upload/merchandise/pdcvis/110757/2019/1108/135/03b3317d-5435-4999-a628-a0a62b3a1596.jpg',
|
||||
price:119,
|
||||
comment_num:999
|
||||
},
|
||||
{
|
||||
id:103,
|
||||
name:'魅可MAC子弹头经典唇膏【多色可选】小辣椒/正红色/脏橘色',
|
||||
image:'https://a.vpimg3.com/upload/merchandise/pdcimg/2019/04/12/107/70021251555039941586.jpg',
|
||||
price:285,
|
||||
comment_num:999
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
[
|
||||
{
|
||||
"username": "admin",
|
||||
"password": "123",
|
||||
"img": "https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241719043.jpeg"
|
||||
},
|
||||
{
|
||||
"username": "test1",
|
||||
"password": "123",
|
||||
"img": "https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241719043.jpeg"
|
||||
},
|
||||
{
|
||||
"username": "test2",
|
||||
"password": "123456",
|
||||
"img": "https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241719043.jpeg"
|
||||
},
|
||||
{
|
||||
"username": "test3",
|
||||
"password": "123456",
|
||||
"img": "https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241719043.jpeg"
|
||||
},
|
||||
{
|
||||
"username": "test5",
|
||||
"password": "123456",
|
||||
"img": "https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241719043.jpeg"
|
||||
}
|
||||
]
|
@ -0,0 +1,32 @@
|
||||
const express = require("express")
|
||||
const app = express();
|
||||
const bodyParser = require("body-parser");
|
||||
const router = require("./router")
|
||||
var debug = require('debug')('my-application');
|
||||
// var cors = require('cors');
|
||||
|
||||
|
||||
app.use(express.static('upload'))
|
||||
app.use(bodyParser.urlencoded({
|
||||
extended: true
|
||||
}));
|
||||
|
||||
app.use("/",router);
|
||||
|
||||
// 设置静态资源目录
|
||||
app.use('/uploads', express.static("D:/loveUpload")); // 设置静态资源访问路径
|
||||
|
||||
|
||||
app.all('*', function(req, res, next) {
|
||||
res.header("Access-Control-Allow-Origin", "http://localhost:3300");
|
||||
res.header("Access-Control-Allow-Headers", "Content-Type,Access-Token");
|
||||
res.header("Access-Control-Allow-Methods","PUT,POST,GET,DELETE,OPTIONS");
|
||||
res.header("X-Powered-By",' 3.2.1');
|
||||
res.header("Content-Type", "application/json;charset=utf-8");
|
||||
next();
|
||||
})
|
||||
|
||||
|
||||
app.listen(3300,function(){
|
||||
debug(3300);
|
||||
})
|
@ -0,0 +1,19 @@
|
||||
{
|
||||
"restartable": "rs",
|
||||
"ignore": [
|
||||
".git",
|
||||
".svn",
|
||||
"node_modules/**/node_modules"
|
||||
],
|
||||
"verbose": true,
|
||||
"execMap": {
|
||||
"js": "node --harmony"
|
||||
},
|
||||
"watch": [
|
||||
|
||||
],
|
||||
"env": {
|
||||
"NODE_ENV": "development"
|
||||
},
|
||||
"ext": "js json"
|
||||
}
|
@ -0,0 +1,261 @@
|
||||
const express = require("express");
|
||||
const router = express.Router();
|
||||
|
||||
const url = require('url');
|
||||
const fs = require('fs');
|
||||
// const multer=require('multer');
|
||||
|
||||
const userService = require('./userService');
|
||||
|
||||
// 类目详细信息
|
||||
const sorts = require('./data/sorts')
|
||||
const sortsContent = require('./data/sorts/sortsContent')
|
||||
// 我的收藏
|
||||
const collection = require('./data/mycollect')
|
||||
// 粉丝和关注
|
||||
const guanzhu = require('./data/gzandfs/gz.js')
|
||||
const fensi = require('./data/gzandfs/fs.js')
|
||||
const picData = require('./data/find');
|
||||
const imgData = require('./data/huatibang')
|
||||
const daren = require('./data/daren');
|
||||
const shangpin = require('./data/shangpin')
|
||||
const faqidianjin = require('./data/faqidianjin');
|
||||
const bannerList = require('./upload/banner');
|
||||
const picList = require('./upload/picture');
|
||||
const tipList = require('./upload/dialy')
|
||||
const userInfo = require('./data/user');
|
||||
|
||||
const vcr = require('./upload/vcr.js')
|
||||
|
||||
// 1.首页轮播图接口
|
||||
router.get("/banner", (res, req) => {
|
||||
req.send(bannerList)
|
||||
})
|
||||
|
||||
// 2.图片接口
|
||||
router.get("/pic", (res, req) => {
|
||||
req.send(picList)
|
||||
})
|
||||
|
||||
router.get("/vcr", (res, req) => {
|
||||
req.send(vcr)
|
||||
})
|
||||
|
||||
//3.日记接口
|
||||
router.get("/tip", (res, req) => {
|
||||
req.send(tipList)
|
||||
})
|
||||
|
||||
router.post('/login', function (res, req) {
|
||||
let username = res.body.username;
|
||||
let password = res.body.password;
|
||||
console.log(username, password);
|
||||
try {
|
||||
userService.loginUser(username, password);
|
||||
req.send({
|
||||
status: 200,
|
||||
msg: '登录成功'
|
||||
})
|
||||
} catch (error) {
|
||||
req.send({
|
||||
msg: error.message
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
// 注册接口
|
||||
router.post('/register', (res,req) => {
|
||||
const { username, password, confirmPassword } = res.body;
|
||||
try {
|
||||
userService.registerUser(username, password, confirmPassword);
|
||||
req.send({
|
||||
status: 200,
|
||||
msg: '注册成功'
|
||||
})
|
||||
} catch (error) {
|
||||
req.send({
|
||||
msg: error.message
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
router.get('/find', function (res, req) {
|
||||
req.send(picData);
|
||||
})
|
||||
// 搜索类目列表
|
||||
router.get('/sorts', function (res, req) {
|
||||
var sorts_id = res.query.id;
|
||||
var data = {}
|
||||
for (var i = 0; i < sorts.data.length; i++) {
|
||||
if (sorts.data[i].id == sorts_id) {
|
||||
data = {
|
||||
status: 200,
|
||||
data: sorts.data[i]
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (data) {
|
||||
req.send(data);
|
||||
} else {
|
||||
req.send({
|
||||
status: 200,
|
||||
msg: 'error'
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
// 搜索化妆品列表
|
||||
router.get('/searchDesc', function (req, res) {
|
||||
const keyword = req.query.keyword || '';
|
||||
const bottomPrice = parseFloat(req.query.bottomPrice) || 0;
|
||||
const highestPrice = parseFloat(req.query.highestPrice) || Infinity;
|
||||
|
||||
let filteredCosmetics = [];
|
||||
|
||||
sorts.data.forEach(category => {
|
||||
const matchingCosmetics = category.cosmetics.filter(item => {
|
||||
const matchesKeyword = item.name.includes(keyword);
|
||||
const matchesPrice = item.price >= bottomPrice && item.price <= highestPrice;
|
||||
return matchesKeyword && matchesPrice;
|
||||
});
|
||||
|
||||
// 如果有匹配的化妆品,添加到结果数组
|
||||
if (matchingCosmetics.length > 0) {
|
||||
matchingCosmetics.forEach(item2 => {
|
||||
filteredCosmetics.push(item2);
|
||||
})
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
if (filteredCosmetics.length > 0) {
|
||||
res.send({
|
||||
status: 200,
|
||||
data: filteredCosmetics
|
||||
});
|
||||
} else {
|
||||
res.send({
|
||||
status: 200,
|
||||
msg: 'error'
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// 商品信息
|
||||
router.get('/sorts/getcontent', function (res, req) {
|
||||
var product_id = res.query.id;
|
||||
var resultList = {};
|
||||
sortsContent.data.forEach((item) => {
|
||||
if (item.id == product_id) {
|
||||
resultList = item;
|
||||
}
|
||||
})
|
||||
if (resultList) {
|
||||
req.send({
|
||||
status: 200,
|
||||
data: resultList
|
||||
})
|
||||
} else {
|
||||
req.send({
|
||||
status: 200,
|
||||
msg: 'error'
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
// 我的收藏
|
||||
router.get('/mine/collection', function (res, req) {
|
||||
var id = res.query.id;
|
||||
if (id == collection.id) {
|
||||
req.send(collection)
|
||||
} else {
|
||||
req.send({
|
||||
status: 200,
|
||||
msg: 'error'
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
router.get('/mine/gzandfs', function (res, req) {
|
||||
var type = res.query.id;
|
||||
if (type == 1) {
|
||||
req.send(guanzhu)
|
||||
} else if (type == 2) {
|
||||
req.send(fensi)
|
||||
} else {
|
||||
req.send({
|
||||
status: 200,
|
||||
msg: 'error'
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
router.post('/login', function (res, req) {
|
||||
let username = res.body.username;
|
||||
let password = res.body.password;
|
||||
console.log(username, password);
|
||||
if (username == 'admin' && password == '123') {
|
||||
req.send({
|
||||
status: 200,
|
||||
msg: '登录成功'
|
||||
})
|
||||
} else {
|
||||
req.send({
|
||||
msg: '用户名或密码错误'
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
router.get('/find', function (res, req) {
|
||||
req.send(picData);
|
||||
});
|
||||
router.get('/find/img', function (res, req) {
|
||||
req.send(imgData);
|
||||
});
|
||||
router.get('/find/daren', function (res, req) {
|
||||
req.send(daren);
|
||||
})
|
||||
router.get('/find/shangpin', function (res, req) {
|
||||
req.send(shangpin);
|
||||
});
|
||||
router.get('/find/faqidianjin', function (res, req) {
|
||||
let username = res.query.username;
|
||||
console.log(username);
|
||||
var data =null;
|
||||
userInfo.forEach(item => {
|
||||
console.log(item.username == username)
|
||||
if (item.username == username) {
|
||||
data = item
|
||||
}
|
||||
})
|
||||
|
||||
if (data) {
|
||||
req.send({
|
||||
status: 200,
|
||||
data: data
|
||||
})
|
||||
} else {
|
||||
req.send({
|
||||
status: 200,
|
||||
msg: '用户信息不存在'
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
router.get('/find/faqidianjin/info',function (res,req) {
|
||||
let id = res.query.id;
|
||||
console.log(id);
|
||||
if (id==1001){
|
||||
req.send(faqidianjin);
|
||||
}else{
|
||||
req.send({
|
||||
msg:'id信息错误'
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
module.exports = router
|
@ -0,0 +1 @@
|
||||
node index.js
|
@ -0,0 +1,9 @@
|
||||
module.exports={
|
||||
data:[
|
||||
"https://d.vpimg1.com/upcb/2020/02/15/44/ias_158175392499477_570x273_90.jpg",
|
||||
"https://d.vpimg1.com/upcb/2020/02/14/111/ias_1d4dcf15-7ce7-457f-b25b-8a47199d9f24_570x273_90.jpg",
|
||||
"https://c.vpimg1.com/upcb/2019/11/26/161/ias_92bd46e5-2a83-4ae0-acc1-15a4d2d2e062_570x273_90.jpg",
|
||||
"https://d.vpimg1.com/upcb/2019/11/25/87/ias_eee7eb59-050a-4779-bc09-9de05d6530b2_570x273_90.jpg",
|
||||
"https://c.vpimg1.com/upcb/2020/02/23/129/ias_158242239512159_570x273_90.jpg",
|
||||
]
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
module.exports={
|
||||
data:[
|
||||
{
|
||||
uname:"南馆潇湘",
|
||||
u_num:"125",
|
||||
pic:'https://c.vpimg1.com/upcb/2020/02/23/129/ias_158242239512159_570x273_90.jpg'
|
||||
},
|
||||
{
|
||||
uname:"且听风铃",
|
||||
u_num:"188",
|
||||
pic:'https://d.vpimg1.com/upcb/2019/11/28/67/ias_35019f79-c84b-420e-aef7-0cd5d786970e_570x273_90.jpg',
|
||||
},
|
||||
{
|
||||
uname:"若即若离",
|
||||
u_num:"230",
|
||||
pic:'https://d.vpimg1.com/upcb/2020/02/19/107/ias_158212795335445_570x273_90.jpg'
|
||||
},
|
||||
{
|
||||
uname:"暮色上浓妆",
|
||||
u_num:"96",
|
||||
pic:'https://d.vpimg1.com/upcb/2020/02/17/50/ias_33ed2745-cd62-4876-be5c-a3a3331315d6_570x273_90.jpg'
|
||||
},
|
||||
{
|
||||
uname:"指上菁芜",
|
||||
u_num:"305",
|
||||
pic:'https://d.vpimg1.com/upcb/2020/01/19/112/ias_929eccdf-1c06-490b-9c0b-c7864bd74eaa_570x273_90.jpg',
|
||||
},
|
||||
{
|
||||
uname:"被冲淡的悲伤",
|
||||
u_num:"109",
|
||||
pic:'https://d.vpimg1.com/upcb/2019/12/04/45/ias_438f6ea4-5fbf-4c37-9c36-7d59a3e7f742_570x273_90.jpg',
|
||||
},
|
||||
{
|
||||
uname:"一语呢喃",
|
||||
u_num:"160",
|
||||
pic:'https://d.vpimg1.com/upcb/2020/02/05/152/ias_384ea974-cf40-4366-93c7-26413029ec9c_570x273_90.jpg',
|
||||
},
|
||||
|
||||
{
|
||||
uname:"浅浅嫣然笑",
|
||||
u_num:"66",
|
||||
pic:'https://d.vpimg1.com/upcb/2019/11/25/87/ias_eee7eb59-050a-4779-bc09-9de05d6530b2_570x273_90.jpg',
|
||||
},
|
||||
{
|
||||
uname:"漫步云海涧",
|
||||
u_num:"399",
|
||||
pic:'https://c.vpimg1.com/upcb/2020/01/07/136/ias_c1f916aa-4a10-41c3-a3b9-ef6b8b928742_570x273_90.jpg',
|
||||
},
|
||||
{
|
||||
uname:"闪耀旳白梦",
|
||||
u_num:"330",
|
||||
pic:'https://d.vpimg1.com/upcb/2019/11/28/167/ias_f1585148-a462-4425-a9ca-9869dac8f585_570x273_90.jpg',
|
||||
},
|
||||
]
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const userDataPath = path.join(__dirname, 'data', 'user.json');
|
||||
|
||||
// 读取用户数据
|
||||
const readUserData = () => {
|
||||
return JSON.parse(fs.readFileSync(userDataPath, 'utf-8') || '[]');
|
||||
};
|
||||
|
||||
// 写入用户数据
|
||||
const writeUserData = (data) => {
|
||||
fs.writeFileSync(userDataPath, JSON.stringify(data, null, 2));
|
||||
};
|
||||
|
||||
// 注册用户
|
||||
const registerUser = (username, password, confirmPassword) => {
|
||||
const users = readUserData();
|
||||
|
||||
if (!username || !password || password !== confirmPassword) {
|
||||
throw new Error('无效的输入');
|
||||
}
|
||||
|
||||
if (users.find(user => user.username === username)) {
|
||||
throw new Error('用户已存在');
|
||||
}
|
||||
|
||||
users.push({ username, password,img:"https://oy-bucket.obs.cn-south-1.myhuaweicloud.com/img//202409241719043.jpeg" });
|
||||
writeUserData(users);
|
||||
};
|
||||
|
||||
// 登录用户
|
||||
const loginUser = (username, password) => {
|
||||
const users = readUserData();
|
||||
const user = users.find(user => user.username === username && user.password === password);
|
||||
|
||||
if (!user) {
|
||||
throw new Error('用户名或密码错误');
|
||||
}
|
||||
|
||||
return user; // 返回用户信息(可选)
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
registerUser,
|
||||
loginUser
|
||||
};
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../acorn/bin/acorn" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../acorn/bin/acorn" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\acorn\bin\acorn" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../acorn/bin/acorn" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../ansi-html/bin/ansi-html" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../ansi-html/bin/ansi-html" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\ansi-html\bin\ansi-html" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../ansi-html/bin/ansi-html" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../ansi-html/bin/ansi-html" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../atob/bin/atob.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../atob/bin/atob.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\atob\bin\atob.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../atob/bin/atob.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../atob/bin/atob.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../autoprefixer/bin/autoprefixer" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../autoprefixer/bin/autoprefixer" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\autoprefixer\bin\autoprefixer" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../autoprefixer/bin/autoprefixer" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../autoprefixer/bin/autoprefixer" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../babylon/bin/babylon.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../babylon/bin/babylon.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\babylon\bin\babylon.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../babylon/bin/babylon.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../babylon/bin/babylon.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../browserslist/cli.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../browserslist/cli.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\browserslist\cli.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../browserslist/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../browserslist/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../cssesc/bin/cssesc" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../cssesc/bin/cssesc" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\cssesc\bin\cssesc" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../cssesc/bin/cssesc" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../cssesc/bin/cssesc" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../errno/cli.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../errno/cli.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\errno\cli.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../errno/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../errno/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../esprima/bin/esparse.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../esprima/bin/esparse.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\esprima\bin\esparse.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../esprima/bin/esparse.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../esprima/bin/esparse.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../esprima/bin/esvalidate.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../esprima/bin/esvalidate.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\esprima\bin\esvalidate.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../esprima/bin/esvalidate.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../esprima/bin/esvalidate.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../he/bin/he" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../he/bin/he" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\he\bin\he" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../he/bin/he" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../he/bin/he" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../cli-highlight/bin/highlight" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../cli-highlight/bin/highlight" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\cli-highlight\bin\highlight" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../cli-highlight/bin/highlight" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../cli-highlight/bin/highlight" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../html-minifier/cli.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../html-minifier/cli.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\html-minifier\cli.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../html-minifier/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../html-minifier/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../image-size/bin/image-size.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../image-size/bin/image-size.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\image-size\bin\image-size.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../image-size/bin/image-size.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../image-size/bin/image-size.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../import-local/fixtures/cli.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../import-local/fixtures/cli.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\import-local\fixtures\cli.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../import-local/fixtures/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../import-local/fixtures/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../js-yaml/bin/js-yaml.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../js-yaml/bin/js-yaml.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\js-yaml\bin\js-yaml.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../jsesc/bin/jsesc" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../jsesc/bin/jsesc" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\jsesc\bin\jsesc" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../json5/lib/cli.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../json5/lib/cli.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\json5\lib\cli.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../less/bin/lessc" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../less/bin/lessc" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\less\bin\lessc" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../less/bin/lessc" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../less/bin/lessc" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../loose-envify/cli.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../loose-envify/cli.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\loose-envify\cli.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../loose-envify/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../loose-envify/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../miller-rabin/bin/miller-rabin" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../miller-rabin/bin/miller-rabin" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\miller-rabin\bin\miller-rabin" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../miller-rabin/bin/miller-rabin" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../miller-rabin/bin/miller-rabin" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../mime/cli.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../mime/cli.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\mime\cli.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../mime/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../mime/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../mkdirp/bin/cmd.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\mkdirp\bin\cmd.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../multicast-dns/cli.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../multicast-dns/cli.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\multicast-dns\cli.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../multicast-dns/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../multicast-dns/cli.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../opener/bin/opener-bin.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../opener/bin/opener-bin.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
@ -0,0 +1,17 @@
|
||||
@ECHO off
|
||||
SETLOCAL
|
||||
CALL :find_dp0
|
||||
|
||||
IF EXIST "%dp0%\node.exe" (
|
||||
SET "_prog=%dp0%\node.exe"
|
||||
) ELSE (
|
||||
SET "_prog=node"
|
||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
)
|
||||
|
||||
"%_prog%" "%dp0%\..\opener\bin\opener-bin.js" %*
|
||||
ENDLOCAL
|
||||
EXIT /b %errorlevel%
|
||||
:find_dp0
|
||||
SET dp0=%~dp0
|
||||
EXIT /b
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
}
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
& "$basedir/node$exe" "$basedir/../opener/bin/opener-bin.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
& "node$exe" "$basedir/../opener/bin/opener-bin.js" $args
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
exit $ret
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue