Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
Expand Down
8 changes: 8 additions & 0 deletions examples/designer-modes/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

export default {
plugins: {
tailwindcss: {},
Expand Down
8 changes: 8 additions & 0 deletions examples/designer-modes/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { useState } from 'react';
import { Designer, type DesignerMode } from '@object-ui/designer';
import type { SchemaNode } from '@object-ui/core';
Expand Down
8 changes: 8 additions & 0 deletions examples/designer-modes/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import '@object-ui/components'; // Register components
Expand Down
8 changes: 8 additions & 0 deletions examples/designer-modes/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import componentConfig from '../../packages/components/tailwind.config.js';

/** @type {import('tailwindcss').Config} */
Expand Down
8 changes: 8 additions & 0 deletions examples/designer-modes/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
Expand Down
8 changes: 8 additions & 0 deletions examples/showcase/scripts/generate-pages.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

const fs = require('fs');
const path = require('path');

Expand Down
7 changes: 7 additions & 0 deletions packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/usr/bin/env node
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { Command } from 'commander';
import chalk from 'chalk';
import { serve } from './commands/serve.js';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/add.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import chalk from 'chalk';
import { existsSync, mkdirSync, writeFileSync } from 'fs';
import { join } from 'path';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/build.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { build as viteBuild } from 'vite';
import react from '@vitejs/plugin-react';
import { existsSync, mkdirSync, cpSync, rmSync } from 'fs';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/check.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import chalk from 'chalk';
import { globSync } from 'glob';
import { readFileSync } from 'fs';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/dev.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { createServer } from 'vite';
import react from '@vitejs/plugin-react';
import { existsSync, mkdirSync, unlinkSync, statSync } from 'fs';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/doctor.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import chalk from 'chalk';
import { existsSync, readFileSync } from 'fs';
import { join } from 'path';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/generate.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import chalk from 'chalk';
import { existsSync, mkdirSync, writeFileSync } from 'fs';
import { join } from 'path';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/init.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { existsSync, writeFileSync, mkdirSync } from 'fs';
import { join } from 'path';
import chalk from 'chalk';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/lint.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { execSync } from 'child_process';
import { existsSync } from 'fs';
import { join } from 'path';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/serve.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { createServer } from 'vite';
import react from '@vitejs/plugin-react';
import { existsSync, mkdirSync } from 'fs';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/start.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import express from 'express';
import rateLimit from 'express-rate-limit';
import { existsSync } from 'fs';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/studio.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import chalk from 'chalk';
import { serve } from './serve.js';

Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/commands/test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { execSync } from 'child_process';
import { existsSync } from 'fs';
import { join } from 'path';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

export { serve } from './commands/serve.js';
export { init } from './commands/init.js';
8 changes: 8 additions & 0 deletions packages/cli/src/utils/app-generator.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { readFileSync, writeFileSync, mkdirSync, readdirSync, statSync, existsSync } from 'fs';
import { join } from 'path';
import chalk from 'chalk';
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { defineConfig } from 'tsup';

export default defineConfig({
Expand Down
8 changes: 8 additions & 0 deletions packages/components/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

export default {
plugins: {
tailwindcss: {},
Expand Down
8 changes: 8 additions & 0 deletions packages/components/src/hooks/use-mobile.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import * as React from "react"

const MOBILE_BREAKPOINT = 768
Expand Down
8 changes: 8 additions & 0 deletions packages/components/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { describe, it, expect } from 'vitest';

describe('components', () => {
Expand Down
8 changes: 8 additions & 0 deletions packages/components/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import './index.css';

// Register all ObjectUI renderers (side-effects)
Expand Down
8 changes: 8 additions & 0 deletions packages/components/src/lib/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
import { SchemaRenderer } from "@object-ui/react"
Expand Down
8 changes: 8 additions & 0 deletions packages/components/src/new-components.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { describe, it, expect, beforeAll } from 'vitest';
import { ComponentRegistry } from '@object-ui/core';

Expand Down
8 changes: 8 additions & 0 deletions packages/components/src/renderers/basic/div.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { ComponentRegistry } from '@object-ui/core';
import type { DivSchema } from '@object-ui/types';
import { renderChildren } from '../../lib/utils';
Expand Down
8 changes: 8 additions & 0 deletions packages/components/src/renderers/basic/html.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import { ComponentRegistry } from '@object-ui/core';
import type { HtmlSchema } from '@object-ui/types';
Expand Down
8 changes: 8 additions & 0 deletions packages/components/src/renderers/basic/icon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { ComponentRegistry } from '@object-ui/core';
import type { IconSchema } from '@object-ui/types';
import { icons } from 'lucide-react';
Expand Down
8 changes: 8 additions & 0 deletions packages/components/src/renderers/basic/image.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* ObjectUI
* Copyright (c) 2024-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { ComponentRegistry } from '@object-ui/core';
import type { ImageSchema } from '@object-ui/types';

Expand Down
Loading