Migrate front-end to Nuxt app (#284)
* wip * Managed to load a page * Stuck at changing routes * Fixed the router, and editable div * WIP * Fix app loader * WIP * Fix check-auth middleware * Started to refactor input components * WIP * Added select input, v-click-outside for vselect * update vselect & phone input * Fixed the mixin * input component updates * Fix signature input import * input component updates in vue3 * image input in vue3 * small fixes * fix useFormInput watcher * scale input in vue3 * Vue3: migrating from vuex to Pinia (#249) * Vue3: migrating from vuex to Pinia * toggle input fixes * update configureCompat --------- Co-authored-by: Forms Dev <chirag+new@notionforms.io> * support vue3 query builder * Refactor inpus * fix: Vue3 Query Builder - Logic Editor (#251) * support vue3 query builder * upgrade * remove local from middleware * Submission table pagination & migrate chart to vue3 (#254) * Submission table Pagination in background * migrate chart to vue3 * Form submissions pagination * Form submissions * Fix form starts * Fix openSelect key issue --------- Co-authored-by: Forms Dev <chirag+new@notionforms.io> Co-authored-by: Julien Nahum <julien@nahum.net> * Vue 3 better animation (#257) * vue-3-better-animation * Working on migration to vueuse/motion * Form sidebar animations * Clean code * Added animations for modal * Finished implementing better animations --------- Co-authored-by: Forms Dev <chirag+new@notionforms.io> * Work in progress * Migrating amplitude and crisp plugin/composable * Started to refactor pages * WIP * vue3-scroll-shadow-fixes (#260) * WIP * WIP * WIP * Figured out auth & middlewares * WI * Refactoring stores and templates pages to comp. api * Finishing the templates pages * fix collapsible * Finish reworking most templates pages * Reworked workspaces store * Working on home page and modal * Fix dropdown * Fix modal * Fixed form creation * Fixed most of the form/show pages * Updated cors dependency * fix custom domain warning * NuxtLink migration (#262) Co-authored-by: Forms Dev <chirag+new@notionforms.io> * Tiny fixes + start pre-rendering * migrate-to-nuxt-useappconfig (#263) * migrate-to-nuxt-useappconfig * defineAppConfig --------- Co-authored-by: Forms Dev <chirag+new@notionforms.io> * Working on form/show and editor * Globally import form inputs to fix resolve * Remove vform - working on form public page * Remove initform mixin * Work in progress for form create guess user * Nuxt Migration notifications (#265) * Nuxt Migration notifications * @input to @update:model-value * change field type fixes * @update:model-value * Enable form-block-logic-editor * vue-confetti migration * PR request changes * useAlert in setup * Migrate to nuxt settings page AND remove axios (#266) * Settings pages migration * remove axios and use opnFetch * Make created form reactive (#267) * Remove verify pages and axios lib --------- Co-authored-by: Julien Nahum <julien@nahum.net> * Fix alert styling + bug fixes and cleaning * Refactor notifications + add shadow * Fix vselect issue * Working on page pre-rendering * Created NotionPages store * Added sitemap on nuxt side * Sitemap done, working on aws amplify * Adding missing module * Remove axios and commit backend changes to sitemap * Fix notifications * fix guestpage editor (#269) Co-authored-by: Julien Nahum <julien@nahum.net> * Remove appconfig in favor of runtimeconfig * Fixed amplitude bugs, and added staging environment * Added amplify file * Change basdirectory amplify * Fix loading bar position * Fix custom redirect (#273) * Dirty form handling - nuxt migration (#272) * SEO meta nuxt migration (#274) * SEO meta nuxt migration * Polish seo metas, add defaults for OG and twitter --------- Co-authored-by: Julien Nahum <julien@nahum.net> * migrate to nuxt useClipboard (#268) * Set middleware on pages (#278) * Se middleware on pages * Se middleware on account page * add robots.txt (#276) * 404 page migration (#277) * Templates pages migration (#275) * NuxtImg Migration (#279) Co-authored-by: Julien Nahum <julien@nahum.net> * Update package json * Fix build script * Add loglevel param * Disable page pre-rendering * Attempt to allow svgs * Fix SVGs with NuxtImage * Add .env file at AWS build time * tRGIGGER deploy * Fix issue * ANother attrempt * Fix typo * Fix env? * Attempt to simplify build * Enable swr caching instead of prerenderign * Better image compression * Last attempt at nuxt images efficiency * Improve image optimization again * Remove NuxtImg for non asset files * Restore templates pages cache * Remove useless images + fix templates show page * image optimization caching + fix hydratation issue form template page * URL generation (front&back) + fixed authJWT for SSR * Fix composable issue * Fix form share page * Embeddable form as a nuxt middleware * Fix URL for embeddable middleware * Debugging embeddable on amplify * Add custom domain support * No follow for non-production env * Fix sentry nuxt and custom domain redirect * remove api prefix from routes (#280) * remove api prefix from routes * PR changes --------- Co-authored-by: Julien Nahum <julien@nahum.net> * nuxt migration -file upload - WIP (#271) Co-authored-by: Julien Nahum <julien@nahum.net> * Fix local file upload * Fix file submissions preview * API redirect to back-end from nuxt * API redirect to back-end from nuxt * Remove old JS app, update deploy script * Fix tests, added gh action nuxt step * Updated package-lock.json * Setup node in GH Nuxt action * Setup client directory for GH workflow --------- Co-authored-by: Forms Dev <chirag+new@notionforms.io> Co-authored-by: Chirag Chhatrala <60499540+chiragchhatrala@users.noreply.github.com> Co-authored-by: Rishi Raj Jain <rishi18304@iiitd.ac.in> Co-authored-by: formsdev <136701234+formsdev@users.noreply.github.com>
This commit is contained in:
58
client/scss/app.scss
vendored
Normal file
58
client/scss/app.scss
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@import 'fonts';
|
||||
|
||||
body.dark * {
|
||||
@apply border-gray-600
|
||||
}
|
||||
|
||||
* {
|
||||
font-family: GeneralSans, sans-serif !important;
|
||||
}
|
||||
|
||||
#app {
|
||||
@apply min-h-screen;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
|
||||
:root {
|
||||
--bg-form-color: #2563eb;
|
||||
}
|
||||
|
||||
p, div {
|
||||
@apply text-gray-900 dark:text-white;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
@apply text-gray-900 dark:text-white;
|
||||
}
|
||||
|
||||
h1 {
|
||||
@apply text-3xl sm:text-4xl font-semibold;
|
||||
}
|
||||
|
||||
h2 {
|
||||
@apply text-3xl font-semibold;
|
||||
}
|
||||
|
||||
a {
|
||||
@apply text-blue-600 hover:underline;
|
||||
}
|
||||
}
|
||||
|
||||
.bg-white {
|
||||
@apply dark:bg-notion-dark;
|
||||
}
|
||||
|
||||
.bg-gray-50 {
|
||||
@apply dark:bg-notion-dark-light;
|
||||
}
|
||||
|
||||
.field-help {
|
||||
p {
|
||||
@apply text-gray-400 dark:text-gray-500;
|
||||
}
|
||||
}
|
||||
202
client/scss/fonts.scss
vendored
Normal file
202
client/scss/fonts.scss
vendored
Normal file
@@ -0,0 +1,202 @@
|
||||
/**
|
||||
* @license
|
||||
*
|
||||
* Font Family: General Sans
|
||||
* Designed by: Frode Helland
|
||||
* URL: https://www.fontshare.com/fonts/general-sans/general-sans
|
||||
* © 2022 Indian Type Foundry
|
||||
*
|
||||
* Font Styles:
|
||||
* General Sans Variable(Variable font)
|
||||
* General Sans Variable Italic(Variable font)
|
||||
* General Sans Extralight
|
||||
* General Sans Extralight Italic
|
||||
* General Sans Light
|
||||
* General Sans Light Italic
|
||||
* General Sans Regular
|
||||
* General Sans Italic
|
||||
* General Sans Medium
|
||||
* General Sans Medium Italic
|
||||
* General Sans Semibold
|
||||
* General Sans Semibold Italic
|
||||
* General Sans Bold
|
||||
* General Sans Bold Italic
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* This is a variable font
|
||||
* You can controll variable axes as shown below:
|
||||
* font-variation-settings: 'wght' 700.0;
|
||||
*
|
||||
* available axes:
|
||||
|
||||
* 'wght' (range from 200.0 to 700.0)
|
||||
|
||||
*/
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans-Variable';
|
||||
src: url('/fonts/general-sans/GeneralSans-Variable.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-Variable.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-Variable.ttf') format('truetype');
|
||||
font-weight: 200 700;
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This is a variable font
|
||||
* You can controll variable axes as shown below:
|
||||
* font-variation-settings: 'wght' 700.0;
|
||||
*
|
||||
* available axes:
|
||||
|
||||
* 'wght' (range from 200.0 to 700.0)
|
||||
|
||||
*/
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans';
|
||||
src: url('/fonts/general-sans/GeneralSans-VariableItalic.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-VariableItalic.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-VariableItalic.ttf') format('truetype');
|
||||
font-weight: 200 700;
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans';
|
||||
src: url('/fonts/general-sans/GeneralSans-Extralight.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-Extralight.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-Extralight.ttf') format('truetype');
|
||||
font-weight: 200;
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans';
|
||||
src: url('/fonts/general-sans/GeneralSans-ExtralightItalic.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-ExtralightItalic.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-ExtralightItalic.ttf') format('truetype');
|
||||
font-weight: 200;
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans';
|
||||
src: url('/fonts/general-sans/GeneralSans-Light.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-Light.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-Light.ttf') format('truetype');
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans';
|
||||
src: url('/fonts/general-sans/GeneralSans-LightItalic.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-LightItalic.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-LightItalic.ttf') format('truetype');
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans';
|
||||
src: url('/fonts/general-sans/GeneralSans-Regular.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-Regular.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-Regular.ttf') format('truetype');
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans';
|
||||
src: url('/fonts/general-sans/GeneralSans-Italic.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-Italic.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-Italic.ttf') format('truetype');
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans';
|
||||
src: url('/fonts/general-sans/GeneralSans-Medium.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-Medium.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-Medium.ttf') format('truetype');
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans';
|
||||
src: url('/fonts/general-sans/GeneralSans-MediumItalic.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-MediumItalic.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-MediumItalic.ttf') format('truetype');
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans';
|
||||
src: url('/fonts/general-sans/GeneralSans-Semibold.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-Semibold.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-Semibold.ttf') format('truetype');
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans';
|
||||
src: url('/fonts/general-sans/GeneralSans-SemiboldItalic.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-SemiboldItalic.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-SemiboldItalic.ttf') format('truetype');
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans';
|
||||
src: url('/fonts/general-sans/GeneralSans-Bold.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-Bold.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-Bold.ttf') format('truetype');
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'GeneralSans';
|
||||
src: url('/fonts/general-sans/GeneralSans-BoldItalic.woff2') format('woff2'),
|
||||
url('/fonts/general-sans/GeneralSans-BoldItalic.woff') format('woff'),
|
||||
url('/fonts/general-sans/GeneralSans-BoldItalic.ttf') format('truetype');
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user