预览 国际
预览 国内
预览 国内备用加速
- 请尝试下面的账号
Email Address: test@qq.com
Password: 123456
git clone https://github.com/xkloveme/os
yarn
Make sure you replace my-project with your own project name
If you don't have yarn installed
npm i
Remove yarn.lock as you will already have package.lock
- Go to Firebase console. Add Project. In project overview, click on the web icon and register the app. You will see
firebaseConfig object
, We will require its details further. Click on Authetication, then on set up sign-in method. EnableEmail/password authentication
&google authentication
. - Create a
.env.local
file in your project's root. Example of.env.local
file is given below. Make sure you replaceYOUR_FIREBASE_CONSOLE_DETAILS
with yourfirebaseConfig object
details.
VITE_APP_API_KEY=YOUR_FIREBASE_CONSOLE_DETAILS
VITE_APP_AUTH_DOMAIN=YOUR_FIREBASE_CONSOLE_DETAILS
VITE_APP_DATABASE_URL=YOUR_FIREBASE_CONSOLE_DETAILS
VITE_APP_PROJECT_ID=YOUR_FIREBASE_CONSOLE_DETAILS
VITE_APP_STORAGE_BUCKET=YOUR_FIREBASE_CONSOLE_DETAILS
VITE_APP_MESSAGING_SENDER_ID=YOUR_FIREBASE_CONSOLE_DETAILS
VITE_APP_APP_ID=YOUR_FIREBASE_CONSOLE_DETAILS
- That's It ! Finally run the application
yarn dev # OR npm run dev
- Class suffixed with
t-
will be found/src/assets/index.css
, they are basically global stylesSome basic html elements and classes are already configured check out,
/src/assets/index.css
useAuthState
in/src/firebase.js
returns{ user, error, isAuthenticated }
useSignOut
in/src/firebase.js
- Signs Out UsergetUserState
in/src/firebase.js
- Returns promiseisValidEmail
/src/helpers/isValidEmail.js
function returns true if email is validLoading
in/src/components/Loading.vue
- Loading spinnerDialog
in/src/components/Dialog.vue
- Headless UI dialog
- Font -
Ubuntu (font-text)
&Goldman (font-heading)
- Primary Color - Tailwind -
colors.sky["500"]
- Secondary Color - Tailwind -
colors.slate["700"]
- Background Color - index.css -
#22272e
- Error Color - Tailwind -
colors.red["500"]