mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
Merge branch 'master' into feat/migrate-supabase-ui
This commit is contained in:
commit
9b58810550
19 files changed
+4996
-65104
No files matched your search
@@ -14,7 +14,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x]
|
||||
node-version: [16.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
steps:
|
||||
|
||||
@@ -17,7 +17,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x]
|
||||
node-version: [16.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 i
|
||||
working-directory: ./studio
|
||||
run: npm install
|
||||
working-directory: ./
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
working-directory: ./studio
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
cookie
|
||||
@@ -10,16 +10,19 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@octokit/graphql": "^4.8.0",
|
||||
"colorette": "^1.4.0",
|
||||
"common": "*",
|
||||
"next": "12.0.8",
|
||||
"react": "17.0.2",
|
||||
"react-dom": "17.0.2",
|
||||
"common": "*"
|
||||
"string-hash": "^1.1.3"
|
||||
},
|
||||
"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"
|
||||
|
||||
@@ -35,6 +35,7 @@ const query = `
|
||||
}
|
||||
`
|
||||
export async function fetchDiscussions() {
|
||||
// @ts-ignore
|
||||
const { repository } = await graphql(query, {
|
||||
headers: {
|
||||
authorization: `token ${process.env.NEXT_PUBLIC_DISCUSSIONS_TOKEN}`,
|
||||
|
||||
@@ -9,18 +9,19 @@
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"colorette": "^1.4.0",
|
||||
"common": "*",
|
||||
"next": "12.0.8",
|
||||
"react": "17.0.2",
|
||||
"react-dom": "17.0.2",
|
||||
"common": "*"
|
||||
"react-dom": "17.0.2"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"config": "*",
|
||||
"@apollo/client": "^3.6.6",
|
||||
"@mdx-js/loader": "^1.6.22",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
@@ -33,11 +34,12 @@
|
||||
"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"
|
||||
}
|
||||
}
|
||||
@@ -55,19 +55,20 @@
|
||||
"@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": "^16.9.35",
|
||||
"@types/react": "17.0.11",
|
||||
"@types/react-copy-to-clipboard": "^4.3.0",
|
||||
"@types/react-dom": "^16.9.8",
|
||||
"@types/react-dom": "^17.0.11",
|
||||
"@types/react-syntax-highlighter": "^13.5.2",
|
||||
"autoprefixer": "^10.4.2",
|
||||
"file-loader": "^6.2.0",
|
||||
"postcss": "^8.4.7",
|
||||
"postcss": "^8.4.16",
|
||||
"postcss-preset-env": "^6.7.0",
|
||||
"prettier": "^2.2.1",
|
||||
"tailwindcss": "^3.1.0"
|
||||
"tailwindcss": "^3.1.8"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -5,13 +5,20 @@
|
||||
<link>https://supabase.com</link>
|
||||
<description>Latest news from Supabase</description>
|
||||
<language>en</language>
|
||||
<lastBuildDate>Tue, 06 Sep 2022 22:10:00 +0000</lastBuildDate>
|
||||
<lastBuildDate>Wed, 07 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>
|
||||
|
||||
Generated
+4942
-12708
File diff suppressed because it is too large.
Load diff
+4
-20
@@ -28,26 +28,10 @@
|
||||
"perf:meta": "ab -t 5 -c 20 -T application/json http://localhost:5555/tables"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@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"
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-custom": "*",
|
||||
"prettier": "^2.5.1",
|
||||
"turbo": "1.4.7"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
"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-radix": "^2.0.0",
|
||||
"@tailwindcss/typography": "^0.5.2"
|
||||
}
|
||||
}
|
||||
@@ -274,5 +274,5 @@ module.exports = ui({
|
||||
// height: ['hover'],
|
||||
// },
|
||||
// },
|
||||
plugins: [require('@tailwindcss/typography')],
|
||||
// plugins: [require('@tailwindcss/typography')],
|
||||
})
|
||||
@@ -186,6 +186,8 @@ export const calcChartStart = (params: Partial<LogsEndpointParams>): [Dayjs, str
|
||||
trunc = 'day'
|
||||
extendValue = 7
|
||||
}
|
||||
//
|
||||
// @ts-ignore
|
||||
return [its.add(-extendValue, trunc), trunc]
|
||||
}
|
||||
|
||||
|
||||
@@ -30,8 +30,7 @@ export default async function apiWrapper(
|
||||
}
|
||||
|
||||
const func = withSentry(handler)
|
||||
|
||||
// @ts-expect-error
|
||||
// @ts-ignore
|
||||
return await func(req, res)
|
||||
} catch (error) {
|
||||
return res.status(500).json({ error })
|
||||
|
||||
@@ -68,7 +68,9 @@ const nextConfig = {
|
||||
}
|
||||
|
||||
// Export all config
|
||||
const moduleExports = withPlugins([[withBundleAnalyzer({})], withTM()], nextConfig)
|
||||
const plugins = [[withBundleAnalyzer({})], withTM()]
|
||||
|
||||
const moduleExports = withPlugins(plugins, nextConfig)
|
||||
|
||||
const sentryWebpackPluginOptions = {
|
||||
// Additional config options for the Sentry Webpack plugin. Keep in mind that
|
||||
|
||||
Generated
-52325
File diff suppressed because it is too large.
Load diff
+6
-3
@@ -14,6 +14,7 @@
|
||||
"prettier:write": "prettier --write ."
|
||||
},
|
||||
"dependencies": {
|
||||
"config": "*",
|
||||
"@headlessui/react": "^1.4.1",
|
||||
"@monaco-editor/react": "^4.3.1",
|
||||
"@next/bundle-analyzer": "^12.0.4",
|
||||
@@ -62,7 +63,7 @@
|
||||
"react-dnd-html5-backend": "^14.0.1",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-grid-layout": "^1.3.0",
|
||||
"react-hot-toast": "^2.1.1",
|
||||
"react-hot-toast": "2.3.0",
|
||||
"react-inlinesvg": "^2.3.0",
|
||||
"react-markdown": "^8.0.3",
|
||||
"react-split": "^2.0.13",
|
||||
@@ -70,7 +71,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,6 +86,8 @@
|
||||
"zxcvbn": "^4.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"common": "*",
|
||||
"config": "*",
|
||||
"@babel/core": "^7.17.5",
|
||||
"@storybook/addon-actions": "^6.4.19",
|
||||
"@storybook/addon-essentials": "^6.4.19",
|
||||
@@ -115,7 +118,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",
|
||||
|
||||
@@ -1,28 +1,4 @@
|
||||
const ui = require('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 ui = require('./../packages/config/ui.config.js')
|
||||
|
||||
const blueGray = {
|
||||
50: '#F8FAFC',
|
||||
@@ -61,10 +37,10 @@ module.exports = ui({
|
||||
'./lib/**/**/*.{js,ts,jsx,tsx}',
|
||||
'./../packages/ui/src/lib/theme/defaultTheme.ts',
|
||||
// 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: {
|
||||
|
||||
Reference in new issue
Block a user