Revert "migrate studio to turbo"

This commit is contained in:
Jonathan Summers-Muir
2022-09-22 17:29:29 +02:00
committed by GitHub
parent 9d235af531
commit 4e29f86883
20 changed files with 58608 additions and 34462 deletions

View File

@@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
node-version: [16.x]
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:

View File

@@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
node-version: [16.x]
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
@@ -28,8 +28,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install deps
run: npm install
working-directory: ./
run: npm i
working-directory: ./studio
- name: Run tests
run: npm test
working-directory: ./studio

View File

@@ -1 +0,0 @@
cookie

View File

@@ -10,19 +10,16 @@
},
"dependencies": {
"@octokit/graphql": "^4.8.0",
"colorette": "^1.4.0",
"common": "*",
"next": "12.0.8",
"react": "17.0.2",
"react-dom": "17.0.2",
"string-hash": "^1.1.3"
"common": "*"
},
"devDependencies": {
"@types/node": "^17.0.12",
"@types/react": "17.0.37",
"config": "*",
"eslint": "7.32.0",
"mini-svg-data-uri": "^1.4.4",
"next-transpile-modules": "9.0.0",
"tsconfig": "*",
"typescript": "^4.5.3"

View File

@@ -35,7 +35,6 @@ const query = `
}
`
export async function fetchDiscussions() {
// @ts-ignore
const { repository } = await graphql(query, {
headers: {
authorization: `token ${process.env.NEXT_PUBLIC_DISCUSSIONS_TOKEN}`,

View File

@@ -9,19 +9,18 @@
"lint": "next lint"
},
"dependencies": {
"colorette": "^1.4.0",
"common": "*",
"next": "12.0.8",
"react": "17.0.2",
"react-dom": "17.0.2"
"react-dom": "17.0.2",
"common": "*"
},
"devDependencies": {
"@types/node": "^17.0.12",
"@types/react": "17.0.37",
"config": "*",
"eslint": "7.32.0",
"next-transpile-modules": "9.0.0",
"tsconfig": "*",
"@types/node": "^17.0.12",
"@types/react": "17.0.37",
"typescript": "^4.5.3"
}
}

View File

@@ -9,7 +9,6 @@
"lint": "next lint"
},
"dependencies": {
"config": "*",
"@apollo/client": "^3.6.6",
"@mdx-js/loader": "^1.6.22",
"@mdx-js/react": "^1.6.22",
@@ -34,12 +33,11 @@
"remark-prism": "^1.3.6"
},
"devDependencies": {
"config": "*",
"tsconfig": "*",
"@types/node": "^17.0.12",
"@types/react": "17.0.39",
"eslint": "8.9.0",
"next-transpile-modules": "9.0.0",
"tsconfig": "*",
"typescript": "^4.5.3"
}
}

View File

@@ -55,20 +55,19 @@
"@types/classnames": "^2.3.1",
"@types/jest": "^25.2.2",
"@types/marked": "^4.0.3",
"@types/mdx-js__react": "^1.5.5",
"@types/node": "^14.0.1",
"@types/nodemailer": "^6.4.4",
"@types/parse-numeric-range": "^0.0.1",
"@types/react": "17.0.11",
"@types/react": "^16.9.35",
"@types/react-copy-to-clipboard": "^4.3.0",
"@types/react-dom": "^17.0.11",
"@types/react-dom": "^16.9.8",
"@types/react-syntax-highlighter": "^13.5.2",
"autoprefixer": "^10.4.2",
"file-loader": "^6.2.0",
"postcss": "^8.4.16",
"postcss": "^8.4.7",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.2.1",
"tailwindcss": "^3.1.8"
"tailwindcss": "^3.1.0"
},
"license": "MIT"
}

View File

@@ -5,20 +5,13 @@
<link>https://supabase.com</link>
<description>Latest news from Supabase</description>
<language>en</language>
<lastBuildDate>Wed, 07 Sep 2022 22:10:00 +0000</lastBuildDate>
<lastBuildDate>Tue, 06 Sep 2022 22:10:00 +0000</lastBuildDate>
<atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
<item>
<guid>https://supabase.com/blog/choosing-a-postgres-primary-key</guid>
<title>Choosing a Postgres Primary Key</title>
<link>https://supabase.com/blog/choosing-a-postgres-primary-key</link>
<description>Turns out the question of which identifier to use as a Primary Key is complicated -- we're going to dive into some of the complexity and inherent trade-offs, and figure things out</description>
<pubDate>Wed, 07 Sep 2022 22:10:00 +0000</pubDate>
</item>
<item>
<guid>https://supabase.com/blog/supabase-beta-update-august-2022</guid>
<title>Supabase Beta August 2022</title>
<link>https://supabase.com/blog/supabase-beta-update-august-2022</link>
<description>Launch Week Special. See everything we shipped, plus winners of the Hackathon and the extended Community Highlights</description>
<pubDate>Tue, 06 Sep 2022 22:10:00 +0000</pubDate>
</item>
<item>

View File

@@ -774,60 +774,6 @@
<changefreq>0.5</changefreq>
</url>
<url>
<loc>https://supabase.com/blog/launch-week-5-community-day</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
<loc>https://supabase.com/blog/launch-week-5-one-more-thing</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
<loc>https://supabase.com/blog/pg-jsonschema-a-postgres-extension-for-json-validation</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
<loc>https://supabase.com/blog/postgrest-v10</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
<loc>https://supabase.com/blog/supabase-vault</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
<loc>https://supabase.com/blog/building-a-realtime-trello-board-with-supabase-and-angular</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
<loc>https://supabase.com/blog/launch-week-5-hackathon-winners</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
<loc>https://supabase.com/blog/supabase-beta-update-august-2022</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
<loc>https://supabase.com/blog/choosing-a-postgres-primary-key</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
<loc>https://supabase.com/alternatives/supabase-vs-firebase</loc>
<changefreq>weekly</changefreq>

40561
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,7 +10,6 @@
"apps/temp-community-tutorials",
"apps/temp-docs",
"apps/www",
"studio",
"packages/*"
],
"scripts": {
@@ -28,10 +27,26 @@
"perf:meta": "ab -t 5 -c 20 -T application/json http://localhost:5555/tables"
},
"devDependencies": {
"eslint": "^7.32.0",
"eslint-config-custom": "*",
"prettier": "^2.5.1",
"turbo": "1.4.7"
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.4",
"@babel/preset-typescript": "^7.16.0",
"@supabase/supabase-js": "^1.35.3",
"@types/jest": "^27.0.3",
"@types/node": "^14.14.14",
"autoprefixer": "^10.4.4",
"axios": "^0.24.0",
"babel-jest": "^27.3.1",
"dotenv": "^10.0.0",
"faker": "^5.5.3",
"jest": "^27.3.1",
"postcss": "^8.4.12",
"prettier": "^2.6.2",
"prettier-plugin-tailwindcss": "^0.1.8",
"tailwindcss": "^3.0.24",
"ts-jest": "^27.0.7",
"ts-node": "^9.1.1",
"turbo": "latest",
"typescript": "^4.5.2"
},
"repository": {
"type": "git",

View File

@@ -15,7 +15,6 @@
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-react": "7.28.0",
"mini-svg-data-uri": "^1.4.4",
"tailwindcss-radix": "^2.0.0",
"@tailwindcss/typography": "^0.5.2"
"tailwindcss-radix": "^2.0.0"
}
}

View File

@@ -274,5 +274,5 @@ module.exports = ui({
// height: ['hover'],
// },
// },
// plugins: [require('@tailwindcss/typography')],
plugins: [require('@tailwindcss/typography')],
})

View File

@@ -184,8 +184,6 @@ export const calcChartStart = (params: Partial<LogsEndpointParams>): [Dayjs, str
trunc = 'day'
extendValue = 7
}
//
// @ts-ignore
return [its.add(-extendValue, trunc), trunc]
}

View File

@@ -30,7 +30,6 @@ export default async function apiWrapper(
}
const func = withSentry(handler)
// @ts-ignore
return await func(req, res)
} catch (error) {
return res.status(500).json({ error })

View File

@@ -1,6 +1,3 @@
// this is required to use shared packages in the packages directory
const withTM = require('next-transpile-modules')(['common'])
const { withSentryConfig } = require('@sentry/nextjs')
const withPlugins = require('next-compose-plugins')
const withBundleAnalyzer = require('@next/bundle-analyzer')({
@@ -68,9 +65,7 @@ const nextConfig = {
}
// Export all config
const plugins = [[withBundleAnalyzer({})], withTM()]
const moduleExports = withPlugins(plugins, nextConfig)
const moduleExports = withPlugins([[withBundleAnalyzer({})]], nextConfig)
const sentryWebpackPluginOptions = {
// Additional config options for the Sentry Webpack plugin. Keep in mind that
@@ -90,4 +85,4 @@ const sentryWebpackPluginOptions = {
module.exports =
process.env.NEXT_PUBLIC_IS_PLATFORM === 'true'
? withSentryConfig(moduleExports, sentryWebpackPluginOptions)
: withPlugins([withTM()], nextConfig)
: nextConfig

52325
studio/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -14,7 +14,6 @@
"prettier:write": "prettier --write ."
},
"dependencies": {
"config": "*",
"@headlessui/react": "^1.4.1",
"@monaco-editor/react": "^4.3.1",
"@next/bundle-analyzer": "^12.0.4",
@@ -48,7 +47,6 @@
"mobx-react-lite": "^3.2.0",
"next": "12.0.9",
"next-compose-plugins": "^2.2.1",
"next-transpile-modules": "^9.0.0",
"openapi-types": "^9.1.0",
"p-queue": "^6.6.2",
"papaparse": "^5.3.1",
@@ -64,7 +62,7 @@
"react-dnd-html5-backend": "^14.0.1",
"react-dom": "^17.0.2",
"react-grid-layout": "^1.3.0",
"react-hot-toast": "2.3.0",
"react-hot-toast": "^2.1.1",
"react-inlinesvg": "^2.3.0",
"react-markdown": "^8.0.3",
"react-split": "^2.0.13",
@@ -72,7 +70,7 @@
"react-virtualized-auto-sizer": "^1.0.6",
"react-window": "^1.8.6",
"react-window-infinite-loader": "^1.0.7",
"recharts": "2.1.6",
"recharts": "^2.1.6",
"sass": "^1.43.4",
"scheduler": "^0.20.2",
"semver": "^6.3.0",
@@ -85,8 +83,6 @@
"zxcvbn": "^4.4.2"
},
"devDependencies": {
"common": "*",
"config": "*",
"@babel/core": "^7.17.5",
"@storybook/addon-actions": "^6.4.19",
"@storybook/addon-essentials": "^6.4.19",
@@ -117,7 +113,7 @@
"@types/sqlstring": "^2.3.0",
"@types/uuid": "^8.3.4",
"@types/zxcvbn": "^4.4.1",
"autoprefixer": "10.4.2",
"autoprefixer": "^10.4.2",
"babel-loader": "^8.2.3",
"jest": "^27.4.0",
"jest-canvas-mock": "^2.3.1",

View File

@@ -1,4 +1,28 @@
const ui = require('./../packages/config/ui.config.js')
const ui = require('@supabase/ui/dist/config/ui.config.js')
// const gray = {
// 100: '#eeeeee',
// 200: '#e0e0e0',
// 300: '#bbbbbb',
// 400: '#666666',
// 500: '#444444',
// 650: '#333',
// 600: '#2a2a2a',
// 700: '#1f1f1f',
// 800: '#181818',
// 900: '#0f0f0f',
// }
// const green = {
// 100: '#c5f1dd',
// 200: '#c5f1dd',
// 300: '#9fe7c7',
// 400: '#65d9a5',
// 500: '#24b47e',
// 600: '#38bc81',
// 700: '#1c8656',
// 800: '#10633e',
// 900: '#10633e',
// }
const blueGray = {
50: '#F8FAFC',
@@ -36,10 +60,10 @@ module.exports = ui({
'./lib/**/*.{js,ts,jsx,tsx}',
'./lib/**/**/*.{js,ts,jsx,tsx}',
// purge styles from supabase ui theme
'./../node_modules/@supabase/ui/dist/config/default-theme.js',
'./node_modules/@supabase/ui/dist/config/default-theme.js',
// purge styles from grid library
'./../node_modules/@supabase/grid/src/components/**/*.{js,ts,jsx,tsx}',
'./../node_modules/@supabase/grid/src/components/**/**/*.{js,ts,jsx,tsx}',
'./node_modules/@supabase/grid/src/components/**/*.{js,ts,jsx,tsx}',
'./node_modules/@supabase/grid/src/components/**/**/*.{js,ts,jsx,tsx}',
],
theme: {
// maxHeight: {