Skip to content

Commit

Permalink
Merge branch 'main' of github.com:BuilderIO/builder into fix/columns-…
Browse files Browse the repository at this point in the history
…updates
  • Loading branch information
samijaber committed Apr 22, 2024
2 parents 8481173 + dd83514 commit 7a3d8fc
Show file tree
Hide file tree
Showing 59 changed files with 11,410 additions and 18,331 deletions.
11 changes: 0 additions & 11 deletions .changeset/sixty-pugs-hide.md

This file was deleted.

112 changes: 61 additions & 51 deletions examples/nextjs-pages-dir-v2/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/nextjs-pages-dir-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@builder.io/sdk-react": "^1.0.21",
"next": "14.1.0",
"next": "^14.2.2",
"react": "^18",
"react-dom": "^18"
},
Expand Down
14 changes: 5 additions & 9 deletions examples/nextjs-pages-dir-v2/src/pages/[[...page]].tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import {
BuilderContent,
Content,
fetchEntries,
fetchOneEntry,
isEditing,
isPreviewing,
} from '@builder.io/sdk-react';
import { BuilderContent, Content, fetchEntries, fetchOneEntry } from '@builder.io/sdk-react';
import { GetStaticProps } from 'next';
import DefaultErrorPage from 'next/error';
import Head from 'next/head';
Expand Down Expand Up @@ -58,7 +51,10 @@ export async function getStaticPaths() {
export default function Page(props: { page: BuilderContent | null }) {
const router = useRouter();

const canShowContent = props.page || isPreviewing(router.asPath) || isEditing(router.asPath);
const canShowContent =
props.page ||
router.asPath.includes('builder.preview') ||
router.asPath.includes('builder.frameEditing');

// If the page content is not available
// and not in preview/editing mode, show a 404 error page
Expand Down
46 changes: 23 additions & 23 deletions examples/qwik/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,37 @@ module.exports = {
node: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:qwik/recommended",
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:qwik/recommended',
],
parser: "@typescript-eslint/parser",
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"],
project: ['./tsconfig.json'],
ecmaVersion: 2021,
sourceType: "module",
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
plugins: ["@typescript-eslint"],
plugins: ['@typescript-eslint'],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"prefer-spread": "off",
"no-case-declarations": "off",
"no-console": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/no-unnecessary-condition": "warn",
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'prefer-spread': 'off',
'no-case-declarations': 'off',
'no-console': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'@typescript-eslint/consistent-type-imports': 'warn',
'@typescript-eslint/no-unnecessary-condition': 'warn',
},
};
1 change: 0 additions & 1 deletion examples/qwik/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ build
.cache
.vscode
.rollup.cache
dist
tsconfig.tsbuildinfo
vite.config.ts
*.spec.tsx
Expand Down

0 comments on commit 7a3d8fc

Please sign in to comment.