-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' of github.com:webiny/webiny-js into next
- Loading branch information
Showing
130 changed files
with
1,608 additions
and
108 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
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
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
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
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import React from "react"; | ||
import { Admin } from "@webiny/app-serverless-cms"; | ||
import { Cognito } from "@webiny/app-admin-users-cognito"; | ||
import { Extensions } from "./Extensions"; | ||
import "./App.scss"; | ||
|
||
export const App = () => { | ||
return ( | ||
<Admin> | ||
<Cognito /> | ||
<Extensions /> | ||
</Admin> | ||
); | ||
}; |
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,6 @@ | ||
// This file is automatically updated via scaffolding utilities. | ||
import React from "react"; | ||
|
||
export const Extensions = () => { | ||
return <></>; | ||
}; |
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 @@ | ||
// This file is automatically updated via scaffolding utilities. | ||
export const extensions = () => { | ||
return []; | ||
}; |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
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
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 @@ | ||
module.exports = require("@webiny/project-utils").createBabelConfigForNode({ path: __dirname }); |
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) Webiny | ||
|
||
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. |
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,15 @@ | ||
# @webiny/api-serverless-cms | ||
[![](https://img.shields.io/npm/dw/@webiny/api-serverless-cms.svg)](https://www.npmjs.com/package/@webiny/api-serverless-cms) | ||
[![](https://img.shields.io/npm/v/@webiny/api-serverless-cms.svg)](https://www.npmjs.com/package/@webiny/api-serverless-cms) | ||
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) | ||
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) | ||
|
||
## Install | ||
``` | ||
npm install --save @webiny/api-serverless-cms | ||
``` | ||
|
||
Or if you prefer yarn: | ||
``` | ||
yarn add @webiny/api-serverless-cms | ||
``` |
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,47 @@ | ||
{ | ||
"name": "@webiny/api-serverless-cms", | ||
"version": "0.0.0", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/webiny/webiny-js.git" | ||
}, | ||
"description": "Core package for all of our API packages.", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@webiny/api": "0.0.0", | ||
"@webiny/api-aco": "0.0.0", | ||
"@webiny/api-file-manager": "0.0.0", | ||
"@webiny/api-form-builder": "0.0.0", | ||
"@webiny/api-headless-cms": "0.0.0", | ||
"@webiny/api-i18n": "0.0.0", | ||
"@webiny/api-i18n-content": "0.0.0", | ||
"@webiny/api-page-builder": "0.0.0", | ||
"@webiny/api-page-builder-aco": "0.0.0", | ||
"@webiny/api-prerendering-service": "0.0.0", | ||
"@webiny/api-security": "0.0.0", | ||
"@webiny/api-tenancy": "0.0.0", | ||
"@webiny/handler-client": "0.0.0", | ||
"@webiny/handler-graphql": "0.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.23.9", | ||
"@babel/core": "^7.24.0", | ||
"@babel/preset-env": "^7.24.0", | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@webiny/cli": "0.0.0", | ||
"@webiny/project-utils": "0.0.0", | ||
"rimraf": "^5.0.5", | ||
"ttypescript": "^1.5.13", | ||
"typescript": "4.7.4" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"directory": "dist" | ||
}, | ||
"scripts": { | ||
"build": "yarn webiny run build", | ||
"watch": "yarn webiny run watch" | ||
}, | ||
"gitHead": "8476da73b653c89cc1474d968baf55c1b0ae0e5f" | ||
} |
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,43 @@ | ||
import { ClientContext } from "@webiny/handler-client/types"; | ||
import { TenancyContext } from "@webiny/api-tenancy/types"; | ||
import { SecurityContext } from "@webiny/api-security/types"; | ||
import { I18NContext } from "@webiny/api-i18n/types"; | ||
import { I18NContentContext } from "@webiny/api-i18n-content/types"; | ||
import { PbContext } from "@webiny/api-page-builder/graphql/types"; | ||
import { PrerenderingServiceClientContext } from "@webiny/api-prerendering-service/client/types"; | ||
import { FileManagerContext } from "@webiny/api-file-manager/types"; | ||
import { FormBuilderContext } from "@webiny/api-form-builder/types"; | ||
import { CmsContext } from "@webiny/api-headless-cms/types"; | ||
import { AcoContext } from "@webiny/api-aco/types"; | ||
import { PbAcoContext } from "@webiny/api-page-builder-aco/types"; | ||
import { createContextPlugin as baseCreateContextPlugin, ContextPluginCallable } from "@webiny/api"; | ||
import { | ||
createGraphQLSchemaPlugin as baseCreateGraphQLSchemaPlugin, | ||
GraphQLSchemaPluginConfig | ||
} from "@webiny/handler-graphql"; | ||
|
||
export interface Context | ||
extends ClientContext, | ||
TenancyContext, | ||
SecurityContext, | ||
I18NContext, | ||
I18NContentContext, | ||
PbContext, | ||
PrerenderingServiceClientContext, | ||
FileManagerContext, | ||
FormBuilderContext, | ||
AcoContext, | ||
PbAcoContext, | ||
CmsContext {} | ||
|
||
export const createContextPlugin = <T extends Context = Context>( | ||
callable: ContextPluginCallable<T> | ||
) => { | ||
return baseCreateContextPlugin<T>(callable); | ||
}; | ||
|
||
export const createGraphQLSchemaPlugin = <T extends Context = Context>( | ||
config: GraphQLSchemaPluginConfig<T> | ||
) => { | ||
return baseCreateGraphQLSchemaPlugin<T>(config); | ||
}; |
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 @@ | ||
{ | ||
"extends": "../../tsconfig.build.json", | ||
"include": ["src"], | ||
"references": [ | ||
{ "path": "../api/tsconfig.build.json" }, | ||
{ "path": "../api-aco/tsconfig.build.json" }, | ||
{ "path": "../api-file-manager/tsconfig.build.json" }, | ||
{ "path": "../api-form-builder/tsconfig.build.json" }, | ||
{ "path": "../handler-graphql/tsconfig.build.json" }, | ||
{ "path": "../api-headless-cms/tsconfig.build.json" }, | ||
{ "path": "../api-i18n/tsconfig.build.json" }, | ||
{ "path": "../api-i18n-content/tsconfig.build.json" }, | ||
{ "path": "../api-page-builder/tsconfig.build.json" }, | ||
{ "path": "../api-page-builder-aco/tsconfig.build.json" }, | ||
{ "path": "../api-prerendering-service/tsconfig.build.json" }, | ||
{ "path": "../api-security/tsconfig.build.json" }, | ||
{ "path": "../api-tenancy/tsconfig.build.json" }, | ||
{ "path": "../handler-client/tsconfig.build.json" } | ||
], | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./dist", | ||
"declarationDir": "./dist", | ||
"paths": { "~/*": ["./src/*"], "~tests/*": ["./__tests__/*"] }, | ||
"baseUrl": "." | ||
} | ||
} |
Oops, something went wrong.