-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e71388
commit 9664de0
Showing
65 changed files
with
3,986 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: publish package to serverless-hub | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
pip install requests | ||
- name: NPM install | ||
run: | | ||
npm install --production | ||
- name: Add publish file | ||
run: | | ||
wget https://serverless-registry.oss-cn-hangzhou.aliyuncs.com/publish-file/python3/hub-publish.py | ||
ls | ||
- name: Publish package | ||
env: | ||
publish_token: ${{ secrets.alibaba_registry_publish_token }} | ||
run: | | ||
ls | ||
python hub-publish.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
.s | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
async function preInit(inputObj) { | ||
|
||
} | ||
|
||
async function postInit(inputObj) { | ||
|
||
} | ||
|
||
module.exports = { | ||
postInit, | ||
preInit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
Type: Application | ||
Name: fc-stable-diffusion | ||
Provider: | ||
- 阿里云 | ||
Version: 0.0.1 | ||
Description: 简短的描述/介绍 | ||
HomePage: 项目首页地址 | ||
Tags: #标签详情 | ||
- 部署函数 | ||
Category: Web框架 | ||
Service: # 使用的服务 | ||
函数计算: # | ||
# Runtime: Python 3.6 如果服务是函数,还需要增加Runtime | ||
Authorities: #权限描述 | ||
- 创建函数 # 所需要的权限 | ||
Parameters: | ||
type: object | ||
additionalProperties: false # 不允许增加其他属性 | ||
required: # 必填项 | ||
- region | ||
properties: | ||
access: | ||
title: 访问秘钥 | ||
type: string | ||
default: default | ||
description: |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
proxyUrl= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) Facebook, Inc. and its affiliates. | ||
|
||
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. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
export PORT=4000 | ||
npm run serverprod |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
object-assign | ||
(c) Sindre Sorhus | ||
@license MIT | ||
*/ | ||
|
||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ | ||
|
||
/** @license React vundefined | ||
* react-dom.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/** @license React vundefined | ||
* react-jsx-runtime.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/** @license React vundefined | ||
* react-server-dom-webpack.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/** @license React vundefined | ||
* react.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/** @license React vundefined | ||
* scheduler.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
{ | ||
"file:///Users/hanxie/localproject/serverless/modern-site-render/sd-freetail/sd-ssr/src/index.client.js": { | ||
"": { | ||
"id": 87, | ||
"chunks": [ | ||
179 | ||
], | ||
"name": "" | ||
}, | ||
"*": { | ||
"id": 87, | ||
"chunks": [ | ||
179 | ||
], | ||
"name": "*" | ||
} | ||
}, | ||
"file:///Users/hanxie/localproject/serverless/modern-site-render/sd-freetail/sd-ssr/src/LocationContext.client.js": { | ||
"": { | ||
"id": 543, | ||
"chunks": [ | ||
179 | ||
], | ||
"name": "" | ||
}, | ||
"*": { | ||
"id": 543, | ||
"chunks": [ | ||
179 | ||
], | ||
"name": "*" | ||
}, | ||
"LocationContext": { | ||
"id": 543, | ||
"chunks": [ | ||
179 | ||
], | ||
"name": "LocationContext" | ||
}, | ||
"useLocation": { | ||
"id": 543, | ||
"chunks": [ | ||
179 | ||
], | ||
"name": "useLocation" | ||
} | ||
}, | ||
"file:///Users/hanxie/localproject/serverless/modern-site-render/sd-freetail/sd-ssr/src/Root.client.js": { | ||
"": { | ||
"id": 391, | ||
"chunks": [ | ||
179 | ||
], | ||
"name": "" | ||
}, | ||
"*": { | ||
"id": 391, | ||
"chunks": [ | ||
179 | ||
], | ||
"name": "*" | ||
}, | ||
"default": { | ||
"id": 391, | ||
"chunks": [ | ||
179 | ||
], | ||
"name": "default" | ||
} | ||
}, | ||
"file:///Users/hanxie/localproject/serverless/modern-site-render/sd-freetail/sd-ssr/src/Cache.client.js": { | ||
"": { | ||
"id": 117, | ||
"chunks": [ | ||
179 | ||
], | ||
"name": "" | ||
}, | ||
"*": { | ||
"id": 117, | ||
"chunks": [ | ||
179 | ||
], | ||
"name": "*" | ||
}, | ||
"useRefresh": { | ||
"id": 117, | ||
"chunks": [ | ||
179 | ||
], | ||
"name": "useRefresh" | ||
}, | ||
"useServerResponse": { | ||
"id": 117, | ||
"chunks": [ | ||
179 | ||
], | ||
"name": "useServerResponse" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
host: process.env.DB_HOST || 'localhost', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"name": "react-notes", | ||
"version": "0.1.0", | ||
"private": true, | ||
"engines": { | ||
"node": ">=14.9.0" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@babel/core": "7.12.3", | ||
"@babel/register": "^7.12.1", | ||
"babel-loader": "8.1.0", | ||
"babel-preset-react-app": "10.0.0", | ||
"cheerio": "^1.0.0-rc.12", | ||
"compression": "^1.7.4", | ||
"concurrently": "^5.3.0", | ||
"date-fns": "^2.16.1", | ||
"excerpts": "^0.0.3", | ||
"express": "^4.17.1", | ||
"html-webpack-plugin": "5.5.0", | ||
"marked": "^1.2.5", | ||
"nodemon": "^2.0.6", | ||
"pg": "^8.5.1", | ||
"react": "0.0.0-experimental-0cc724c77-20211125", | ||
"react-dom": "0.0.0-experimental-0cc724c77-20211125", | ||
"react-error-boundary": "^3.1.0", | ||
"react-fetch": "0.0.0-experimental-0cc724c77-20211125", | ||
"react-fs": "0.0.0-experimental-0cc724c77-20211125", | ||
"react-pg": "0.0.0-experimental-0cc724c77-20211125", | ||
"react-server-dom-webpack": "0.0.0-experimental-0cc724c77-20211125", | ||
"resolve": "1.12.0", | ||
"rimraf": "^3.0.2", | ||
"sanitize-html": "^2.2.0", | ||
"superagent": "^8.0.9", | ||
"webpack": "5.64.4", | ||
"webpack-cli": "4.9.1" | ||
}, | ||
"devDependencies": { | ||
"cross-env": "^7.0.3", | ||
"prettier": "1.19.1" | ||
}, | ||
"scripts": { | ||
"start": "concurrently \"npm run server:dev\" \"npm run bundler:dev\"", | ||
"start:prod": "concurrently \"npm run server:prod\" \"npm run bundler:prod\"", | ||
"server:dev": "cross-env NODE_ENV=development nodemon -- --conditions=react-server server", | ||
"serverprod": "cross-env NODE_ENV=production node --conditions=react-server server", | ||
"bundler:dev": "cross-env NODE_ENV=development nodemon -- scripts/build.js", | ||
"build": "cross-env NODE_ENV=production nodemon -- scripts/build.js", | ||
"prettier": "prettier --write **/*.js", | ||
"seed": "node ./scripts/seed.js" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
[ | ||
"react-app", | ||
{ | ||
"runtime": "automatic" | ||
} | ||
] | ||
] | ||
}, | ||
"nodemonConfig": { | ||
"ignore": [ | ||
"build/*" | ||
] | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.