Skip to content

Commit

Permalink
Tidyup examples and internal InitialisedList type (keystonejs#8438)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Cousens <[email protected]>
  • Loading branch information
dcousens and dcousens authored Mar 30, 2023
1 parent 65254c5 commit ea3c2d4
Show file tree
Hide file tree
Showing 135 changed files with 546 additions and 10,175 deletions.
5 changes: 5 additions & 0 deletions .changeset/session-went-less.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-6/core': patch
---

`.exitSudo` is now deprecated and will be removed in the next major version
File renamed without changes
4 changes: 2 additions & 2 deletions .github/workflows/tests_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ jobs:
'testing.test.ts',
'usecase-blog.test.ts',
'usecase-roles.test.ts',
'usecase-task-manager.test.ts',
'virtual-field.test.ts'
'usecase-todo.test.ts',
'virtual-field.test.ts',
]
fail-fast: false
steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/vercel_preview.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Vercel (Preview)

on:
workflow_dispatch:

Expand All @@ -13,9 +13,9 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- uses: actions/checkout@main

- run: npm install --global vercel@canary

- run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}

- run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vercel_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- uses: actions/checkout@main

- run: npm install --global vercel@canary

- run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
Expand Down
23 changes: 11 additions & 12 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
packages/icons/icons/*
reports
coverage
.changeset/**/*
**/dist
**/.next
**/.keystone
**/.next
**/__generated__
**/dist
**/schema.graphql
*.vscode
.changeset/**/*
.keystone/tests
docs/**/*.md
docs/public/assets/*.js
examples/custom-output-paths/my-types.ts
examples/extend-graphql-schema-nexus/keystone-types.ts
examples/extend-graphql-schema-nexus/nexus-types.ts
docs/**/*.md
docs/public/assets/*.js
.keystone/tests
prisma-utils/src/generated
nexus-typegen.ts
packages/icons/icons/*
pnpm-lock.yaml
prisma-utils/src/generated
tests/test-projects/live-reloading/schemas/syntax-error.js
*.vscode
**/schema.graphql
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<a href="https://keystonejs.com/">
<img src="assets/banner.svg" alt="Keystone: The superpowered CMS for developers">
<img src=".github/assets/banner.svg" alt="Keystone: The superpowered CMS for developers">
</br>
</br>
</a>
<p>
<a aria-label="NPM version" href="https://www.npmjs.com/package/@keystone-6/core">
<img alt="" src="https://img.shields.io/npm/v/@keystone-6/core.svg?style=for-the-badge&labelColor=0869B8">
</a>
</a>
<a aria-label="Twitter Logo" href="https://twitter.com/keystonejs">
<img src="https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white&labelColor=007BCE">
</a>
Expand All @@ -18,7 +18,7 @@
</a>
<a aria-label="Thinkmill Logo" href="https://www.thinkmill.com.au/open-source?utm_campaign=keystone-github">
<img src="https://img.shields.io/badge/A%20Thinkmill%20Project-ed0000.svg?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTg2IiBoZWlnaHQ9IjU4NiIgdmlld0JveD0iMCAwIDU4NiA1ODYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xOTk2XzQwNikiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAt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gMzk4LjE2IDI2MC43MzZDNDE0LjU3NiAyNjAuNzM2IDQyNC42NTYgMjcxLjEwNCA0MjQuNjU2IDI5Ny4wMjRWMzg0SDQ1Ny40ODhWMjkzLjg1NkM0NTcuNDg4IDI1NC40IDQzOC40OCAyMzQuMjQgNDA3LjM3NiAyMzQuMjRaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzE5OTZfNDA2Ij4KPHJlY3Qgd2lkdGg9IjU4NiIgaGVpZ2h0PSI1ODYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==&labelColor=C60200&locoColor=white&logoWidth=0">
</a>
</a>
</p>

---
Expand Down
489 changes: 0 additions & 489 deletions docs/CHANGELOG.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/components/docs/ExamplesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function Examples() {
<Well
grad="grad3"
heading="Task Manager"
href="https://github.com/keystonejs/keystone/blob/main/examples/usecase-task-manager"
href="https://github.com/keystonejs/keystone/blob/main/examples/usecase-todo"
target="_blank"
rel="noopener noreferrer"
>
Expand Down Expand Up @@ -88,7 +88,7 @@ export function Examples() {
<Well
grad="grad3"
heading="Authentication"
href="https://github.com/keystonejs/keystone/tree/main/examples/with-auth"
href="https://github.com/keystonejs/keystone/tree/main/examples/auth"
target="_blank"
rel="noopener noreferrer"
>
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/docs/examples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function Docs() {
<Well
grad="grad1"
heading="Task Manager"
href="https://github.com/keystonejs/keystone/blob/main/examples/usecase-task-manager"
href="https://github.com/keystonejs/keystone/blob/main/examples/usecase-todo"
target="_blank"
rel="noopener noreferrer"
>
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/docs/guides/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ At the core of this API are **query filters**.
This guide will show you how to use filters to get data you need.

{% hint kind="tip" %}
The filter references in this guide are based on the schema defined in the [Task Manager](https://github.com/keystonejs/keystone/tree/main/examples/usecase-task-manager) example project.
The filter references in this guide are based on the schema defined in the [Task Manager](https://github.com/keystonejs/keystone/tree/main/examples/usecase-todo) example project.
{% /hint %}

## Scalar Filters
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/for-developers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export default function ForDevelopers() {
<li>
<Button
as="a"
href="https://github.com/keystonejs/keystone/tree/main/examples/usecase-task-manager"
href="https://github.com/keystonejs/keystone/tree/main/examples/usecase-todo"
target="_blank"
rel="noopener noreferrer"
look="soft"
Expand Down
45 changes: 1 addition & 44 deletions docs/pages/why-keystone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ export default function WhyKeystonePage() {
</Type>
<Type as="p" look="body18">
<a
href="https://github.com/keystonejs/keystone/tree/main/examples/usecase-task-manager"
href="https://github.com/keystonejs/keystone/tree/main/examples/usecase-todo"
target="_blank"
rel="noopener noreferrer"
>
Expand Down Expand Up @@ -578,49 +578,6 @@ export default function WhyKeystonePage() {
</ul>
</Section>

<Section
css={mq({
display: 'grid',
gridTemplateColumns: ['1fr', null, '1fr 1fr'],
gap: '3rem',
})}
>
<div>
<Type as="h3" look="heading36" id="ecommerce">
eCommerce
</Type>
<Type as="p" look="body18" color="var(--muted)" margin="1rem 0">
Keystone gives you the power and control you need to build a complete backend for
eCommerce, while making it easy to integrate platforms like Shopify and Stripe to get
things done. API first, make Keystone a key player in your eCommerce content mesh.
</Type>
<Type as="p" look="body18">
<a
href="https://github.com/keystonejs/keystone/tree/main/examples/usecase-ecommerce"
target="_blank"
rel="noopener noreferrer"
>
Try the eCommerce example →
</a>
</Type>
</div>
<div>
<TweetBox user="wesbos" img="/assets/wesbos-square.jpg" grad="grad2">
I use Keystone in my{' '}
<a
href="https://advancedreact.com/friend/KEYSTONE"
target="_blank"
rel="noopener noreferrer"
>
Advanced React
</a>{' '}
course because it’s super quick to get my content types up and running, add custom
server-side cart & checkout logic, and the fine grain access control is just
fantastic!
</TweetBox>
</div>
</Section>

<AdvancedReactCta />

<Section
Expand Down
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

You can run our examples from your web browser using the free CodeSandbox service.

Just look for the "Try it out in CodeSandbox 🧪" heading in each example project’s README ([example](https://github.com/keystonejs/keystone/tree/main/examples/usecase-task-manager#try-it-out-in-codesandbox-)).
Just look for the "Try it out in CodeSandbox 🧪" heading in each example project’s README ([example](https://github.com/keystonejs/keystone/tree/main/examples/usecase-todo#try-it-out-in-codesandbox-)).

## Getting in touch

Expand Down
Loading

0 comments on commit ea3c2d4

Please sign in to comment.