Skip to content

Commit

Permalink
init project
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxie-crypto committed Apr 7, 2023
1 parent 5e71388 commit 9664de0
Show file tree
Hide file tree
Showing 65 changed files with 3,986 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/registry-publish.yml
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
.s
.DS_Store
12 changes: 12 additions & 0 deletions hook/index.js
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
}
27 changes: 27 additions & 0 deletions publish.yaml
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 added readme.md
Empty file.
Empty file added readme_en.md
Empty file.
1 change: 1 addition & 0 deletions src/code/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
proxyUrl=
21 changes: 21 additions & 0 deletions src/code/LICENSE
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 added src/code/README.md
Empty file.
4 changes: 4 additions & 0 deletions src/code/bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

export PORT=4000
npm run serverprod
39 changes: 39 additions & 0 deletions src/code/build/index.html

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/code/build/main.js

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions src/code/build/main.js.LICENSE.txt
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.
*/
1 change: 1 addition & 0 deletions src/code/build/main.js.map

Large diffs are not rendered by default.

101 changes: 101 additions & 0 deletions src/code/build/react-client-manifest.json
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"
}
}
}
3 changes: 3 additions & 0 deletions src/code/credentials.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
host: process.env.DB_HOST || 'localhost',
};
67 changes: 67 additions & 0 deletions src/code/package.json
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/*"
]
}
}
3 changes: 3 additions & 0 deletions src/code/public/checkmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/code/public/chevron-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/code/public/chevron-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/code/public/cross.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9664de0

Please sign in to comment.