Gathering detailed insights and metrics for ra-supabase-language-english
Gathering detailed insights and metrics for ra-supabase-language-english
Gathering detailed insights and metrics for ra-supabase-language-english
Gathering detailed insights and metrics for ra-supabase-language-english
ra-language-english
English messages for react-admin, the frontend framework for building admin applications on top of REST/GraphQL services
ra-i18n-polyglot
Polyglot i18n provider for react-admin
@supabase/supabase-js
Isomorphic Javascript client for Supabase
@supabase/realtime-js
Listen to realtime updates to your PostgreSQL database
npm install ra-supabase-language-english
69.8
Supply Chain
82.5
Quality
84.4
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
156 Stars
326 Commits
27 Forks
10 Watching
2 Branches
28 Contributors
Updated on 27 Nov 2024
Minified
Minified + Gzipped
TypeScript (90.14%)
HTML (6.61%)
JavaScript (1.64%)
Makefile (1.62%)
Cumulative downloads
Total Downloads
Last day
-12.1%
51
Compared to previous day
Last week
21.2%
435
Compared to previous week
Last month
23.7%
1,552
Compared to previous month
Last year
142.5%
15,704
Compared to previous year
No dependencies detected.
This package provides a dataProvider, an authProvider, hooks and components to integrate Supabase with react-admin when using its default UI (ra-ui-materialui).
This project uses a local instance of Supabase. To set up your environment, run the following command:
1make install supabase-start db-setup
This will:
.env
file with environment variables to target the supabase instanceYou can then start the application in development
mode with:
1make run
Log in with the following credentials:
janedoe@atomic.dev
password
If you need debug the backend, you can access the following services:
When you invite a new user through the Authentication dashboard, or reset a password through the password reset form, you can see the email sent in Inbucket.
Clicking the link inside the email will take you to the /set-password
page where you can set or reset your password.
To test OAuth providers, you must configure the Supabase local instance. This is done by editing the ./supabase/config.toml
file as described in the Supabase CLi documentation.
For instance, to add support for Github authentication, you have to:
Go to the GitHub Developer Settings page:
http://localhost:8000
http://localhost:54321/auth/v1/callback
./supabase/config
file1[auth.external.github] 2enabled = true 3client_id = "YOUR_GITHUB_CLIENT_ID" 4secret = "YOUR_GITHUB_CLIENT_SECRET"
1make supabase-stop supabase-start db-setup
Open the ./packages/demo/src/App.tsx
file and update it.
1<Admin 2 dataProvider={dataProvider} 3 authProvider={authProvider} 4 i18nProvider={i18nProvider} 5 layout={Layout} 6 dashboard={Dashboard} 7- loginPage={LoginPage} 8+ loginPage={<LoginPage providers={['github']} />} 9 queryClient={queryClient} 10 theme={{ 11 ...defaultTheme, 12 palette: { 13 background: { 14 default: '#fafafb', 15 }, 16 }, 17 }} 18>
We provide two language packages:
And there are also community supported language packages:
ra-supabase
already re-export ra-supabase-language-english
but you must set up the i18nProvider yourself:
1// in i18nProvider.js 2import { mergeTranslations } from 'ra-core'; 3import polyglotI18nProvider from 'ra-i18n-polyglot'; 4import englishMessages from 'ra-language-english'; 5import frenchMessages from 'ra-language-french'; 6import { raSupabaseEnglishMessages } from 'ra-supabase-language-english'; 7import { raSupabaseFrenchMessages } from 'ra-supabase-language-french'; 8 9const allEnglishMessages = mergeTranslations( 10 englishMessages, 11 raSupabaseEnglishMessages 12); 13const allFrenchMessages = mergeTranslations( 14 frenchMessages, 15 raSupabaseFrenchMessages 16); 17 18export const i18nProvider = polyglotI18nProvider( 19 locale => (locale === 'fr' ? allFrenchMessages : allEnglishMessages), 20 'en' 21); 22 23// in App.js 24import { Admin, Resource, ListGuesser } from 'react-admin'; 25import { authRoutes } from 'ra-supabase'; 26import { dataProvider } from './dataProvider'; 27import { authProvider } from './authProvider'; 28import { i18nProvider } from './i18nProvider'; 29 30export const MyAdmin = () => ( 31 <Admin 32 dataProvider={dataProvider} 33 authProvider={authProvider} 34 i18nProvider={i18nProvider} 35 customRoutes={authRoutes} 36 > 37 <Resource name="posts" list={ListGuesser} /> 38 <Resource name="authors" list={ListGuesser} /> 39 </Admin> 40);
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
Found 1/10 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
23 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More