hunk
dict
file
stringlengths
0
11.8M
file_path
stringlengths
2
234
label
int64
0
1
commit_url
stringlengths
74
103
dependency_score
sequencelengths
5
5
{ "id": 5, "code_window": [ " invocationCallOrder: [],\n", " results: [],\n", " };\n", " }\n", "\n", " private _makeComponent<T extends Record<string, any>>(\n", " metadata: MockMetadata<T, 'object'>,\n", " restore?: () => void,\n", " ): T;\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " /* eslint-disable @typescript-eslint/unified-signatures */\n" ], "file_path": "packages/jest-mock/src/index.ts", "type": "add", "edit_start_line_idx": 607 }
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ module.exports = {a: 5};
e2e/coverage-report/otherFile.js
0
https://github.com/jestjs/jest/commit/bd2305b374ff976e67579f188559d25d69443c30
[ 0.00017722760094329715, 0.00017722760094329715, 0.00017722760094329715, 0.00017722760094329715, 0 ]
{ "id": 5, "code_window": [ " invocationCallOrder: [],\n", " results: [],\n", " };\n", " }\n", "\n", " private _makeComponent<T extends Record<string, any>>(\n", " metadata: MockMetadata<T, 'object'>,\n", " restore?: () => void,\n", " ): T;\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " /* eslint-disable @typescript-eslint/unified-signatures */\n" ], "file_path": "packages/jest-mock/src/index.ts", "type": "add", "edit_start_line_idx": 607 }
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`chai assertion errors should display properly 1`] = ` "FAIL __tests__/chai_assertion.js ● chai.js assertion library test › expect assert.strictEqual(received, expected) Expected value to strictly be equal to: "hello sunshine" Received: "hello world" Message: expected 'hello world' to equal 'hello sunshine' Difference: - Expected + Received - hello sunshine + hello world 11 | describe('chai.js assertion library test', () => { 12 | it('expect', () => { > 13 | chai.expect('hello world').to.equal('hello sunshine'); | ^ 14 | }); 15 | 16 | it('should', () => { at Object.equal (__tests__/chai_assertion.js:13:35) ● chai.js assertion library test › should assert.strictEqual(received, expected) Expected value to strictly be equal to: "hello world" Received: "hello sunshine" Message: expected 'hello sunshine' to equal 'hello world' Difference: - Expected + Received - hello world + hello sunshine 18 | const expectedString = 'hello world'; 19 | const actualString = 'hello sunshine'; > 20 | actualString.should.equal(expectedString); | ^ 21 | }); 22 | 23 | it('assert', () => { at Object.equal (__tests__/chai_assertion.js:20:25) ● chai.js assertion library test › assert assert.strictEqual(received, expected) Expected value to strictly be equal to: "hello sunshine" Received: "hello world" Message: expected 'hello world' to equal 'hello sunshine' Difference: - Expected + Received - hello sunshine + hello world 22 | 23 | it('assert', () => { > 24 | chai.assert.strictEqual('hello world', 'hello sunshine'); | ^ 25 | }); 26 | }); 27 | at Object.strictEqual (__tests__/chai_assertion.js:24:17)" `;
e2e/__tests__/__snapshots__/chaiAssertionLibrary.ts.snap
0
https://github.com/jestjs/jest/commit/bd2305b374ff976e67579f188559d25d69443c30
[ 0.00017955467046704143, 0.00017673046386335045, 0.00017382169608026743, 0.00017700419994071126, 0.0000016788139873824548 ]
{ "id": 6, "code_window": [ " metadata: MockMetadata<T, 'function'>,\n", " restore?: () => void,\n", " ): Mock<T>;\n", " private _makeComponent<T extends UnknownFunction>(\n", " metadata: MockMetadata<T>,\n", " restore?: () => void,\n", " ): Record<string, any> | Array<unknown> | RegExp | T | Mock | undefined {\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " /* eslint-enable @typescript-eslint/unified-signatures */\n" ], "file_path": "packages/jest-mock/src/index.ts", "type": "add", "edit_start_line_idx": 627 }
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-disable sort-keys */ const fs = require('fs'); const path = require('path'); const {sync: readPkg} = require('read-pkg'); function getPackages() { const PACKAGES_DIR = path.resolve(__dirname, 'packages'); const packages = fs .readdirSync(PACKAGES_DIR) .map(file => path.resolve(PACKAGES_DIR, file)) .filter(f => fs.lstatSync(path.resolve(f)).isDirectory()) .filter(f => fs.existsSync(path.join(path.resolve(f), 'package.json'))); return packages.map(packageDir => { const pkg = readPkg({cwd: packageDir}); return pkg.name; }); } module.exports = { env: { es2020: true, }, extends: [ 'eslint:recommended', 'plugin:markdown/recommended', 'plugin:import/errors', 'plugin:eslint-comments/recommended', 'plugin:prettier/recommended', ], globals: { console: 'readonly', }, overrides: [ { extends: [ 'plugin:@typescript-eslint/recommended', 'plugin:import/typescript', ], files: ['*.ts', '*.tsx'], plugins: ['@typescript-eslint/eslint-plugin', 'local'], rules: { '@typescript-eslint/array-type': ['error', {default: 'generic'}], '@typescript-eslint/ban-types': 'error', '@typescript-eslint/no-inferrable-types': 'error', '@typescript-eslint/no-unused-vars': [ 'error', {argsIgnorePattern: '^_'}, ], '@typescript-eslint/prefer-ts-expect-error': 'error', '@typescript-eslint/no-var-requires': 'off', // TS verifies these 'consistent-return': 'off', 'no-dupe-class-members': 'off', 'no-unused-vars': 'off', // TODO: enable at some point '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-non-null-assertion': 'off', // TODO: part of "stylistic" rules, remove explicit activation when that lands '@typescript-eslint/no-empty-function': 'error', '@typescript-eslint/no-empty-interface': 'error', }, }, { files: [ 'packages/jest-jasmine2/src/jasmine/Env.ts', 'packages/jest-jasmine2/src/jasmine/ReportDispatcher.ts', 'packages/jest-jasmine2/src/jasmine/Spec.ts', 'packages/jest-jasmine2/src/jasmine/SpyStrategy.ts', 'packages/jest-jasmine2/src/jasmine/Suite.ts', 'packages/jest-jasmine2/src/jasmine/createSpy.ts', 'packages/jest-jasmine2/src/jasmine/jasmineLight.ts', 'packages/jest-mock/src/__tests__/index.test.ts', 'packages/jest-mock/src/index.ts', 'packages/pretty-format/src/__tests__/Immutable.test.ts', 'packages/pretty-format/src/__tests__/prettyFormat.test.ts', ], rules: { 'local/prefer-rest-params-eventually': 'warn', 'prefer-rest-params': 'off', }, }, { files: [ 'packages/expect/src/index.ts', 'packages/jest-fake-timers/src/legacyFakeTimers.ts', 'packages/jest-jasmine2/src/jasmine/Env.ts', 'packages/jest-jasmine2/src/jasmine/ReportDispatcher.ts', 'packages/jest-jasmine2/src/jasmine/Spec.ts', 'packages/jest-jasmine2/src/jasmine/Suite.ts', 'packages/jest-jasmine2/src/jasmine/jasmineLight.ts', 'packages/jest-jasmine2/src/jestExpect.ts', 'packages/jest-resolve/src/resolver.ts', ], rules: { 'local/prefer-spread-eventually': 'warn', 'prefer-spread': 'off', }, }, { files: [ 'e2e/babel-plugin-jest-hoist/__tests__/typescript.test.ts', 'e2e/coverage-remapping/covered.ts', 'packages/expect/src/matchers.ts', 'packages/expect/src/print.ts', 'packages/expect/src/toThrowMatchers.ts', 'packages/expect-utils/src/utils.ts', 'packages/jest-core/src/collectHandles.ts', 'packages/jest-core/src/plugins/UpdateSnapshotsInteractive.ts', 'packages/jest-jasmine2/src/jasmine/SpyStrategy.ts', 'packages/jest-jasmine2/src/jasmine/Suite.ts', 'packages/jest-leak-detector/src/index.ts', 'packages/jest-matcher-utils/src/index.ts', 'packages/jest-mock/src/__tests__/index.test.ts', 'packages/jest-mock/src/index.ts', 'packages/jest-snapshot/src/index.ts', 'packages/jest-snapshot/src/printSnapshot.ts', 'packages/jest-snapshot/src/types.ts', 'packages/jest-util/src/convertDescriptorToString.ts', 'packages/pretty-format/src/index.ts', 'packages/pretty-format/src/plugins/DOMCollection.ts', ], rules: { '@typescript-eslint/ban-types': [ 'error', // TODO: remove these overrides: https://github.com/jestjs/jest/issues/10177 {types: {Function: false, object: false, '{}': false}}, ], 'local/ban-types-eventually': [ 'warn', { types: { // none of these types are in use, so can be errored on Boolean: false, Number: false, Object: false, String: false, Symbol: false, }, }, ], }, }, // 'eslint-plugin-jest' rules for test and test related files { files: [ '**/__mocks__/**', '**/__tests__/**', '**/*.md/**', '**/*.test.*', 'e2e/babel-plugin-jest-hoist/mockFile.js', 'e2e/failures/macros.js', 'e2e/test-in-root/*.js', 'e2e/test-match/test-suites/*', 'packages/test-utils/src/ConditionalTest.ts', ], env: {'jest/globals': true}, excludedFiles: ['**/__typetests__/**'], extends: ['plugin:jest/style'], plugins: ['jest'], rules: { 'jest/no-alias-methods': 'error', 'jest/no-focused-tests': 'error', 'jest/no-identical-title': 'error', 'jest/require-to-throw-message': 'error', 'jest/valid-expect': 'error', }, }, { files: ['e2e/__tests__/*'], rules: { 'jest/no-restricted-jest-methods': [ 'error', { fn: 'Please use fixtures instead of mocks in the end-to-end tests.', mock: 'Please use fixtures instead of mocks in the end-to-end tests.', doMock: 'Please use fixtures instead of mocks in the end-to-end tests.', setMock: 'Please use fixtures instead of mocks in the end-to-end tests.', spyOn: 'Please use fixtures instead of mocks in the end-to-end tests.', }, ], }, }, // to make it more suitable for running on code examples in docs/ folder { files: ['**/*.md/**'], rules: { '@typescript-eslint/no-unused-vars': 'off', '@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-empty-interface': 'off', 'consistent-return': 'off', 'import/export': 'off', 'import/no-extraneous-dependencies': 'off', 'import/no-unresolved': 'off', 'jest/no-focused-tests': 'off', 'jest/require-to-throw-message': 'off', 'no-console': 'off', 'no-undef': 'off', 'no-unused-vars': 'off', 'sort-keys': 'off', }, }, // demonstration of matchers usage { files: ['**/UsingMatchers.md/**'], rules: { 'jest/prefer-to-be': 'off', }, }, // demonstration of 'jest/valid-expect' rule { files: [ '**/2017-05-06-jest-20-delightful-testing-multi-project-runner.md/**', ], rules: { 'jest/valid-expect': 'off', }, }, // Jest 11 did not had `toHaveLength` matcher { files: ['**/2016-04-12-jest-11.md/**'], rules: { 'jest/prefer-to-have-length': 'off', }, }, // snapshot in an example needs to keep escapes { files: [ '**/2017-02-21-jest-19-immersive-watch-mode-test-platform-improvements.md/**', ], rules: { 'no-useless-escape': 'off', }, }, // snapshots in examples plus inline snapshots need to keep backtick { files: ['**/*.md/**', 'e2e/custom-inline-snapshot-matchers/__tests__/*'], rules: { quotes: [ 'error', 'single', {allowTemplateLiterals: true, avoidEscape: true}, ], }, }, { files: ['docs/**/*', 'website/**/*'], rules: { 'no-redeclare': 'off', 'import/order': 'off', 'import/sort-keys': 'off', 'no-restricted-globals': ['off'], 'sort-keys': 'off', }, }, { files: ['examples/**/*'], rules: { 'no-restricted-imports': 'off', }, }, { files: 'packages/**/*.ts', rules: { '@typescript-eslint/explicit-module-boundary-types': 'error', 'import/no-anonymous-default-export': [ 'error', { allowAnonymousClass: false, allowAnonymousFunction: false, allowArray: false, allowArrowFunction: false, allowCallExpression: false, allowLiteral: false, allowObject: true, }, ], }, }, { files: ['**/__tests__/**', '**/__mocks__/**'], rules: { '@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/no-empty-function': 'off', }, }, { files: [ '**/__tests__/**', '**/__mocks__/**', 'packages/jest-jasmine2/src/jasmine/**/*', 'packages/expect/src/jasmineUtils.ts', '**/vendor/**/*', ], rules: { '@typescript-eslint/explicit-module-boundary-types': 'off', }, }, { files: [ 'packages/jest-jasmine2/src/jasmine/**/*', 'packages/expect-utils/src/jasmineUtils.ts', ], rules: { 'eslint-comments/disable-enable-pair': 'off', 'eslint-comments/no-unlimited-disable': 'off', }, }, { files: [ 'e2e/error-on-deprecated/__tests__/*', 'e2e/jasmine-async/__tests__/*', ], globals: { fail: 'readonly', jasmine: 'readonly', pending: 'readonly', }, }, { files: [ 'e2e/**', 'website/**', '**/__benchmarks__/**', '**/__tests__/**', 'packages/jest-types/**/*', '.eslintplugin/**', ], rules: { 'import/no-extraneous-dependencies': 'off', }, }, { files: ['**/__typetests__/**'], rules: { '@typescript-eslint/no-empty-function': 'off', }, }, { env: {node: true}, files: ['*.js', '*.jsx', '*.mjs', '*.cjs'], }, { files: [ 'scripts/*', 'packages/*/__benchmarks__/test.js', 'packages/create-jest/src/runCreate.ts', 'packages/jest-repl/src/cli/runtime-cli.ts', ], rules: { 'no-console': 'off', }, }, { files: [ 'e2e/**', 'examples/**', 'website/**', '**/__mocks__/**', '**/__tests__/**', '**/__typetests__/**', ], rules: { '@typescript-eslint/no-unused-vars': 'off', 'import/no-unresolved': 'off', 'no-console': 'off', 'no-unused-vars': 'off', }, }, ], parser: '@typescript-eslint/parser', parserOptions: { sourceType: 'module', }, plugins: ['import', 'jsdoc', 'unicorn'], rules: { 'accessor-pairs': ['warn', {setWithoutGet: true}], 'block-scoped-var': 'off', 'callback-return': 'off', camelcase: ['off', {properties: 'always'}], complexity: 'off', 'consistent-return': 'warn', 'consistent-this': ['off', 'self'], 'constructor-super': 'error', 'default-case': 'off', 'dot-notation': 'off', eqeqeq: ['off', 'allow-null'], 'eslint-comments/disable-enable-pair': ['error', {allowWholeFile: true}], 'eslint-comments/no-unused-disable': 'error', 'func-names': 'off', 'func-style': ['off', 'declaration'], 'global-require': 'off', 'guard-for-in': 'off', 'handle-callback-err': 'off', 'id-length': 'off', 'id-match': 'off', 'import/no-extraneous-dependencies': [ 'error', { devDependencies: [ '**/__mocks__/**', '**/__tests__/**', '**/__typetests__/**', '**/?(*.)(spec|test).js?(x)', 'scripts/**', 'babel.config.js', 'testSetupFile.js', '.eslintrc.cjs', ], }, ], 'import/no-unresolved': ['error', {ignore: ['fsevents']}], 'import/order': [ 'error', { alphabetize: { order: 'asc', }, // this is the default order except for added `internal` in the middle groups: [ 'builtin', 'external', 'internal', 'parent', 'sibling', 'index', ], 'newlines-between': 'never', }, ], 'init-declarations': 'off', 'jsdoc/check-alignment': 'error', 'lines-around-comment': 'off', 'max-depth': 'off', 'max-nested-callbacks': 'off', 'max-params': 'off', 'max-statements': 'off', 'new-cap': 'off', 'new-parens': 'error', 'newline-after-var': 'off', 'no-alert': 'off', 'no-array-constructor': 'error', 'no-bitwise': 'warn', 'no-caller': 'error', 'no-case-declarations': 'off', 'no-class-assign': 'warn', 'no-cond-assign': 'off', 'no-confusing-arrow': 'off', 'no-console': [ 'warn', {allow: ['warn', 'error', 'time', 'timeEnd', 'timeStamp']}, ], 'no-const-assign': 'error', 'no-constant-condition': 'off', 'no-continue': 'off', 'no-control-regex': 'off', 'no-debugger': 'error', 'no-delete-var': 'error', 'no-div-regex': 'off', 'no-dupe-args': 'error', 'no-dupe-class-members': 'error', 'no-dupe-keys': 'error', 'no-duplicate-case': 'error', 'no-duplicate-imports': 'error', 'no-else-return': 'off', 'no-empty': 'off', 'no-empty-character-class': 'warn', 'no-empty-pattern': 'warn', 'no-eq-null': 'off', 'no-eval': 'error', 'no-ex-assign': 'warn', 'no-extend-native': 'warn', 'no-extra-bind': 'warn', 'no-extra-boolean-cast': 'warn', 'no-fallthrough': 'warn', 'no-floating-decimal': 'error', 'no-func-assign': 'error', 'no-implicit-coercion': 'off', 'no-implied-eval': 'error', 'no-inline-comments': 'off', 'no-inner-declarations': 'off', 'no-invalid-regexp': 'warn', 'no-invalid-this': 'off', 'no-irregular-whitespace': 'error', 'no-iterator': 'off', 'no-label-var': 'warn', 'no-labels': ['error', {allowLoop: true, allowSwitch: true}], 'no-lonely-if': 'off', 'no-loop-func': 'off', 'no-magic-numbers': 'off', 'no-mixed-requires': 'off', 'no-mixed-spaces-and-tabs': 'error', 'no-multi-str': 'error', 'no-multiple-empty-lines': 'off', 'no-native-reassign': ['error', {exceptions: ['Map', 'Set']}], 'no-negated-condition': 'off', 'no-negated-in-lhs': 'error', 'no-nested-ternary': 'off', 'no-new': 'warn', 'no-new-func': 'error', 'no-new-object': 'warn', 'no-new-require': 'off', 'no-new-wrappers': 'warn', 'no-obj-calls': 'error', 'no-octal': 'warn', 'no-octal-escape': 'warn', 'no-param-reassign': 'off', 'no-plusplus': 'off', 'no-process-env': 'off', 'no-process-exit': 'off', 'no-proto': 'error', 'no-prototype-builtins': 'error', 'no-redeclare': 'warn', 'no-regex-spaces': 'warn', 'no-restricted-globals': [ 'error', {message: 'Use `globalThis` instead.', name: 'global'}, ], 'no-restricted-imports': [ 'error', {message: 'Please use graceful-fs instead.', name: 'fs'}, ], 'no-restricted-modules': 'off', 'no-restricted-syntax': 'off', 'no-return-assign': 'off', 'no-script-url': 'error', 'no-self-compare': 'warn', 'no-sequences': 'warn', 'no-shadow': 'off', 'no-shadow-restricted-names': 'warn', 'no-sparse-arrays': 'error', 'no-sync': 'off', 'no-ternary': 'off', 'no-this-before-super': 'error', 'no-throw-literal': 'error', 'no-undef': 'error', 'no-undef-init': 'off', 'no-undefined': 'off', 'no-underscore-dangle': 'off', 'no-unneeded-ternary': 'warn', 'no-unreachable': 'error', 'no-unused-expressions': 'off', 'no-unused-vars': ['error', {argsIgnorePattern: '^_'}], 'no-use-before-define': 'off', 'no-useless-call': 'error', 'no-useless-computed-key': 'error', 'no-useless-concat': 'error', 'no-var': 'error', 'no-void': 'off', 'no-warn-comments': 'off', 'no-with': 'off', 'object-shorthand': 'error', 'one-var': ['warn', {initialized: 'never'}], 'operator-assignment': ['warn', 'always'], 'operator-linebreak': 'off', 'padded-blocks': 'off', 'prefer-arrow-callback': ['error', {allowNamedFunctions: true}], 'prefer-const': 'error', 'prefer-template': 'error', quotes: [ 'error', 'single', {allowTemplateLiterals: false, avoidEscape: true}, ], radix: 'warn', 'require-jsdoc': 'off', 'require-yield': 'off', 'sort-imports': ['error', {ignoreDeclarationSort: true}], 'sort-keys': 'error', 'sort-vars': 'off', 'spaced-comment': ['off', 'always', {exceptions: ['eslint', 'global']}], strict: 'off', 'use-isnan': 'error', 'valid-jsdoc': 'off', 'valid-typeof': 'error', 'vars-on-top': 'off', 'wrap-iife': 'off', 'wrap-regex': 'off', yoda: 'off', 'unicorn/explicit-length-check': 'error', 'unicorn/no-array-for-each': 'error', 'unicorn/no-negated-condition': 'error', 'unicorn/prefer-default-parameters': 'error', 'unicorn/prefer-includes': 'error', 'unicorn/template-indent': 'error', }, settings: { 'import/ignore': ['react-native'], // using `new RegExp` makes sure to escape `/` 'import/internal-regex': new RegExp( getPackages() .map(pkg => `^${pkg}$`) .join('|'), ).source, 'import/resolver': { typescript: {}, }, }, };
.eslintrc.cjs
1
https://github.com/jestjs/jest/commit/bd2305b374ff976e67579f188559d25d69443c30
[ 0.00017775563173927367, 0.00017353121074847877, 0.00016559037612751126, 0.00017416304035577923, 0.000002620739905978553 ]
{ "id": 6, "code_window": [ " metadata: MockMetadata<T, 'function'>,\n", " restore?: () => void,\n", " ): Mock<T>;\n", " private _makeComponent<T extends UnknownFunction>(\n", " metadata: MockMetadata<T>,\n", " restore?: () => void,\n", " ): Record<string, any> | Array<unknown> | RegExp | T | Mock | undefined {\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " /* eslint-enable @typescript-eslint/unified-signatures */\n" ], "file_path": "packages/jest-mock/src/index.ts", "type": "add", "edit_start_line_idx": 627 }
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-disable jest/no-focused-tests */ 'use strict'; describe('describe', () => { it('it', () => { expect(1).toBe(1); }); }); describe.only('describe only', () => { it.only('it only', () => { expect(1).toBe(1); }); it('it', () => { expect(1).toBe(1); }); });
e2e/focused-tests/__tests__/tests.js
0
https://github.com/jestjs/jest/commit/bd2305b374ff976e67579f188559d25d69443c30
[ 0.00017679130542092025, 0.00017535807273816317, 0.00017426778504159302, 0.00017501512775197625, 0.000001058378416018968 ]
{ "id": 6, "code_window": [ " metadata: MockMetadata<T, 'function'>,\n", " restore?: () => void,\n", " ): Mock<T>;\n", " private _makeComponent<T extends UnknownFunction>(\n", " metadata: MockMetadata<T>,\n", " restore?: () => void,\n", " ): Record<string, any> | Array<unknown> | RegExp | T | Mock | undefined {\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " /* eslint-enable @typescript-eslint/unified-signatures */\n" ], "file_path": "packages/jest-mock/src/index.ts", "type": "add", "edit_start_line_idx": 627 }
{ "jest": { "testEnvironment": "node" } }
e2e/generator-mock/package.json
0
https://github.com/jestjs/jest/commit/bd2305b374ff976e67579f188559d25d69443c30
[ 0.00017745251534506679, 0.00017745251534506679, 0.00017745251534506679, 0.00017745251534506679, 0 ]
{ "id": 6, "code_window": [ " metadata: MockMetadata<T, 'function'>,\n", " restore?: () => void,\n", " ): Mock<T>;\n", " private _makeComponent<T extends UnknownFunction>(\n", " metadata: MockMetadata<T>,\n", " restore?: () => void,\n", " ): Record<string, any> | Array<unknown> | RegExp | T | Mock | undefined {\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " /* eslint-enable @typescript-eslint/unified-signatures */\n" ], "file_path": "packages/jest-mock/src/index.ts", "type": "add", "edit_start_line_idx": 627 }
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import runJest from '../runJest'; describe('Retain All Files Integration', () => { test('valid test within node_modules', () => { const {exitCode, stdout} = runJest('retain-all-files'); expect(exitCode).toBe(0); expect(stdout).toContain('I am running from within node_modules'); }); });
e2e/__tests__/retainAllFiles.test.ts
0
https://github.com/jestjs/jest/commit/bd2305b374ff976e67579f188559d25d69443c30
[ 0.00017826825205702335, 0.00017652337555773556, 0.00017477848450653255, 0.00017652337555773556, 0.0000017448837752453983 ]
{ "id": 7, "code_window": [ " * is called to store/update this information on the cache map.\n", " */\n", "export default class TestSequencer {\n", " private readonly _cache = new Map<TestContext, Cache>();\n", "\n", " // eslint-disable-next-line @typescript-eslint/no-empty-function\n", " constructor(_options: TestSequencerOptions) {}\n", "\n", " _getCachePath(testContext: TestContext): string {\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " // eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-useless-constructor\n" ], "file_path": "packages/jest-test-sequencer/src/index.ts", "type": "replace", "edit_start_line_idx": 54 }
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-disable sort-keys */ const fs = require('fs'); const path = require('path'); const {sync: readPkg} = require('read-pkg'); function getPackages() { const PACKAGES_DIR = path.resolve(__dirname, 'packages'); const packages = fs .readdirSync(PACKAGES_DIR) .map(file => path.resolve(PACKAGES_DIR, file)) .filter(f => fs.lstatSync(path.resolve(f)).isDirectory()) .filter(f => fs.existsSync(path.join(path.resolve(f), 'package.json'))); return packages.map(packageDir => { const pkg = readPkg({cwd: packageDir}); return pkg.name; }); } module.exports = { env: { es2020: true, }, extends: [ 'eslint:recommended', 'plugin:markdown/recommended', 'plugin:import/errors', 'plugin:eslint-comments/recommended', 'plugin:prettier/recommended', ], globals: { console: 'readonly', }, overrides: [ { extends: [ 'plugin:@typescript-eslint/recommended', 'plugin:import/typescript', ], files: ['*.ts', '*.tsx'], plugins: ['@typescript-eslint/eslint-plugin', 'local'], rules: { '@typescript-eslint/array-type': ['error', {default: 'generic'}], '@typescript-eslint/ban-types': 'error', '@typescript-eslint/no-inferrable-types': 'error', '@typescript-eslint/no-unused-vars': [ 'error', {argsIgnorePattern: '^_'}, ], '@typescript-eslint/prefer-ts-expect-error': 'error', '@typescript-eslint/no-var-requires': 'off', // TS verifies these 'consistent-return': 'off', 'no-dupe-class-members': 'off', 'no-unused-vars': 'off', // TODO: enable at some point '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-non-null-assertion': 'off', // TODO: part of "stylistic" rules, remove explicit activation when that lands '@typescript-eslint/no-empty-function': 'error', '@typescript-eslint/no-empty-interface': 'error', }, }, { files: [ 'packages/jest-jasmine2/src/jasmine/Env.ts', 'packages/jest-jasmine2/src/jasmine/ReportDispatcher.ts', 'packages/jest-jasmine2/src/jasmine/Spec.ts', 'packages/jest-jasmine2/src/jasmine/SpyStrategy.ts', 'packages/jest-jasmine2/src/jasmine/Suite.ts', 'packages/jest-jasmine2/src/jasmine/createSpy.ts', 'packages/jest-jasmine2/src/jasmine/jasmineLight.ts', 'packages/jest-mock/src/__tests__/index.test.ts', 'packages/jest-mock/src/index.ts', 'packages/pretty-format/src/__tests__/Immutable.test.ts', 'packages/pretty-format/src/__tests__/prettyFormat.test.ts', ], rules: { 'local/prefer-rest-params-eventually': 'warn', 'prefer-rest-params': 'off', }, }, { files: [ 'packages/expect/src/index.ts', 'packages/jest-fake-timers/src/legacyFakeTimers.ts', 'packages/jest-jasmine2/src/jasmine/Env.ts', 'packages/jest-jasmine2/src/jasmine/ReportDispatcher.ts', 'packages/jest-jasmine2/src/jasmine/Spec.ts', 'packages/jest-jasmine2/src/jasmine/Suite.ts', 'packages/jest-jasmine2/src/jasmine/jasmineLight.ts', 'packages/jest-jasmine2/src/jestExpect.ts', 'packages/jest-resolve/src/resolver.ts', ], rules: { 'local/prefer-spread-eventually': 'warn', 'prefer-spread': 'off', }, }, { files: [ 'e2e/babel-plugin-jest-hoist/__tests__/typescript.test.ts', 'e2e/coverage-remapping/covered.ts', 'packages/expect/src/matchers.ts', 'packages/expect/src/print.ts', 'packages/expect/src/toThrowMatchers.ts', 'packages/expect-utils/src/utils.ts', 'packages/jest-core/src/collectHandles.ts', 'packages/jest-core/src/plugins/UpdateSnapshotsInteractive.ts', 'packages/jest-jasmine2/src/jasmine/SpyStrategy.ts', 'packages/jest-jasmine2/src/jasmine/Suite.ts', 'packages/jest-leak-detector/src/index.ts', 'packages/jest-matcher-utils/src/index.ts', 'packages/jest-mock/src/__tests__/index.test.ts', 'packages/jest-mock/src/index.ts', 'packages/jest-snapshot/src/index.ts', 'packages/jest-snapshot/src/printSnapshot.ts', 'packages/jest-snapshot/src/types.ts', 'packages/jest-util/src/convertDescriptorToString.ts', 'packages/pretty-format/src/index.ts', 'packages/pretty-format/src/plugins/DOMCollection.ts', ], rules: { '@typescript-eslint/ban-types': [ 'error', // TODO: remove these overrides: https://github.com/jestjs/jest/issues/10177 {types: {Function: false, object: false, '{}': false}}, ], 'local/ban-types-eventually': [ 'warn', { types: { // none of these types are in use, so can be errored on Boolean: false, Number: false, Object: false, String: false, Symbol: false, }, }, ], }, }, // 'eslint-plugin-jest' rules for test and test related files { files: [ '**/__mocks__/**', '**/__tests__/**', '**/*.md/**', '**/*.test.*', 'e2e/babel-plugin-jest-hoist/mockFile.js', 'e2e/failures/macros.js', 'e2e/test-in-root/*.js', 'e2e/test-match/test-suites/*', 'packages/test-utils/src/ConditionalTest.ts', ], env: {'jest/globals': true}, excludedFiles: ['**/__typetests__/**'], extends: ['plugin:jest/style'], plugins: ['jest'], rules: { 'jest/no-alias-methods': 'error', 'jest/no-focused-tests': 'error', 'jest/no-identical-title': 'error', 'jest/require-to-throw-message': 'error', 'jest/valid-expect': 'error', }, }, { files: ['e2e/__tests__/*'], rules: { 'jest/no-restricted-jest-methods': [ 'error', { fn: 'Please use fixtures instead of mocks in the end-to-end tests.', mock: 'Please use fixtures instead of mocks in the end-to-end tests.', doMock: 'Please use fixtures instead of mocks in the end-to-end tests.', setMock: 'Please use fixtures instead of mocks in the end-to-end tests.', spyOn: 'Please use fixtures instead of mocks in the end-to-end tests.', }, ], }, }, // to make it more suitable for running on code examples in docs/ folder { files: ['**/*.md/**'], rules: { '@typescript-eslint/no-unused-vars': 'off', '@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-empty-interface': 'off', 'consistent-return': 'off', 'import/export': 'off', 'import/no-extraneous-dependencies': 'off', 'import/no-unresolved': 'off', 'jest/no-focused-tests': 'off', 'jest/require-to-throw-message': 'off', 'no-console': 'off', 'no-undef': 'off', 'no-unused-vars': 'off', 'sort-keys': 'off', }, }, // demonstration of matchers usage { files: ['**/UsingMatchers.md/**'], rules: { 'jest/prefer-to-be': 'off', }, }, // demonstration of 'jest/valid-expect' rule { files: [ '**/2017-05-06-jest-20-delightful-testing-multi-project-runner.md/**', ], rules: { 'jest/valid-expect': 'off', }, }, // Jest 11 did not had `toHaveLength` matcher { files: ['**/2016-04-12-jest-11.md/**'], rules: { 'jest/prefer-to-have-length': 'off', }, }, // snapshot in an example needs to keep escapes { files: [ '**/2017-02-21-jest-19-immersive-watch-mode-test-platform-improvements.md/**', ], rules: { 'no-useless-escape': 'off', }, }, // snapshots in examples plus inline snapshots need to keep backtick { files: ['**/*.md/**', 'e2e/custom-inline-snapshot-matchers/__tests__/*'], rules: { quotes: [ 'error', 'single', {allowTemplateLiterals: true, avoidEscape: true}, ], }, }, { files: ['docs/**/*', 'website/**/*'], rules: { 'no-redeclare': 'off', 'import/order': 'off', 'import/sort-keys': 'off', 'no-restricted-globals': ['off'], 'sort-keys': 'off', }, }, { files: ['examples/**/*'], rules: { 'no-restricted-imports': 'off', }, }, { files: 'packages/**/*.ts', rules: { '@typescript-eslint/explicit-module-boundary-types': 'error', 'import/no-anonymous-default-export': [ 'error', { allowAnonymousClass: false, allowAnonymousFunction: false, allowArray: false, allowArrowFunction: false, allowCallExpression: false, allowLiteral: false, allowObject: true, }, ], }, }, { files: ['**/__tests__/**', '**/__mocks__/**'], rules: { '@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/no-empty-function': 'off', }, }, { files: [ '**/__tests__/**', '**/__mocks__/**', 'packages/jest-jasmine2/src/jasmine/**/*', 'packages/expect/src/jasmineUtils.ts', '**/vendor/**/*', ], rules: { '@typescript-eslint/explicit-module-boundary-types': 'off', }, }, { files: [ 'packages/jest-jasmine2/src/jasmine/**/*', 'packages/expect-utils/src/jasmineUtils.ts', ], rules: { 'eslint-comments/disable-enable-pair': 'off', 'eslint-comments/no-unlimited-disable': 'off', }, }, { files: [ 'e2e/error-on-deprecated/__tests__/*', 'e2e/jasmine-async/__tests__/*', ], globals: { fail: 'readonly', jasmine: 'readonly', pending: 'readonly', }, }, { files: [ 'e2e/**', 'website/**', '**/__benchmarks__/**', '**/__tests__/**', 'packages/jest-types/**/*', '.eslintplugin/**', ], rules: { 'import/no-extraneous-dependencies': 'off', }, }, { files: ['**/__typetests__/**'], rules: { '@typescript-eslint/no-empty-function': 'off', }, }, { env: {node: true}, files: ['*.js', '*.jsx', '*.mjs', '*.cjs'], }, { files: [ 'scripts/*', 'packages/*/__benchmarks__/test.js', 'packages/create-jest/src/runCreate.ts', 'packages/jest-repl/src/cli/runtime-cli.ts', ], rules: { 'no-console': 'off', }, }, { files: [ 'e2e/**', 'examples/**', 'website/**', '**/__mocks__/**', '**/__tests__/**', '**/__typetests__/**', ], rules: { '@typescript-eslint/no-unused-vars': 'off', 'import/no-unresolved': 'off', 'no-console': 'off', 'no-unused-vars': 'off', }, }, ], parser: '@typescript-eslint/parser', parserOptions: { sourceType: 'module', }, plugins: ['import', 'jsdoc', 'unicorn'], rules: { 'accessor-pairs': ['warn', {setWithoutGet: true}], 'block-scoped-var': 'off', 'callback-return': 'off', camelcase: ['off', {properties: 'always'}], complexity: 'off', 'consistent-return': 'warn', 'consistent-this': ['off', 'self'], 'constructor-super': 'error', 'default-case': 'off', 'dot-notation': 'off', eqeqeq: ['off', 'allow-null'], 'eslint-comments/disable-enable-pair': ['error', {allowWholeFile: true}], 'eslint-comments/no-unused-disable': 'error', 'func-names': 'off', 'func-style': ['off', 'declaration'], 'global-require': 'off', 'guard-for-in': 'off', 'handle-callback-err': 'off', 'id-length': 'off', 'id-match': 'off', 'import/no-extraneous-dependencies': [ 'error', { devDependencies: [ '**/__mocks__/**', '**/__tests__/**', '**/__typetests__/**', '**/?(*.)(spec|test).js?(x)', 'scripts/**', 'babel.config.js', 'testSetupFile.js', '.eslintrc.cjs', ], }, ], 'import/no-unresolved': ['error', {ignore: ['fsevents']}], 'import/order': [ 'error', { alphabetize: { order: 'asc', }, // this is the default order except for added `internal` in the middle groups: [ 'builtin', 'external', 'internal', 'parent', 'sibling', 'index', ], 'newlines-between': 'never', }, ], 'init-declarations': 'off', 'jsdoc/check-alignment': 'error', 'lines-around-comment': 'off', 'max-depth': 'off', 'max-nested-callbacks': 'off', 'max-params': 'off', 'max-statements': 'off', 'new-cap': 'off', 'new-parens': 'error', 'newline-after-var': 'off', 'no-alert': 'off', 'no-array-constructor': 'error', 'no-bitwise': 'warn', 'no-caller': 'error', 'no-case-declarations': 'off', 'no-class-assign': 'warn', 'no-cond-assign': 'off', 'no-confusing-arrow': 'off', 'no-console': [ 'warn', {allow: ['warn', 'error', 'time', 'timeEnd', 'timeStamp']}, ], 'no-const-assign': 'error', 'no-constant-condition': 'off', 'no-continue': 'off', 'no-control-regex': 'off', 'no-debugger': 'error', 'no-delete-var': 'error', 'no-div-regex': 'off', 'no-dupe-args': 'error', 'no-dupe-class-members': 'error', 'no-dupe-keys': 'error', 'no-duplicate-case': 'error', 'no-duplicate-imports': 'error', 'no-else-return': 'off', 'no-empty': 'off', 'no-empty-character-class': 'warn', 'no-empty-pattern': 'warn', 'no-eq-null': 'off', 'no-eval': 'error', 'no-ex-assign': 'warn', 'no-extend-native': 'warn', 'no-extra-bind': 'warn', 'no-extra-boolean-cast': 'warn', 'no-fallthrough': 'warn', 'no-floating-decimal': 'error', 'no-func-assign': 'error', 'no-implicit-coercion': 'off', 'no-implied-eval': 'error', 'no-inline-comments': 'off', 'no-inner-declarations': 'off', 'no-invalid-regexp': 'warn', 'no-invalid-this': 'off', 'no-irregular-whitespace': 'error', 'no-iterator': 'off', 'no-label-var': 'warn', 'no-labels': ['error', {allowLoop: true, allowSwitch: true}], 'no-lonely-if': 'off', 'no-loop-func': 'off', 'no-magic-numbers': 'off', 'no-mixed-requires': 'off', 'no-mixed-spaces-and-tabs': 'error', 'no-multi-str': 'error', 'no-multiple-empty-lines': 'off', 'no-native-reassign': ['error', {exceptions: ['Map', 'Set']}], 'no-negated-condition': 'off', 'no-negated-in-lhs': 'error', 'no-nested-ternary': 'off', 'no-new': 'warn', 'no-new-func': 'error', 'no-new-object': 'warn', 'no-new-require': 'off', 'no-new-wrappers': 'warn', 'no-obj-calls': 'error', 'no-octal': 'warn', 'no-octal-escape': 'warn', 'no-param-reassign': 'off', 'no-plusplus': 'off', 'no-process-env': 'off', 'no-process-exit': 'off', 'no-proto': 'error', 'no-prototype-builtins': 'error', 'no-redeclare': 'warn', 'no-regex-spaces': 'warn', 'no-restricted-globals': [ 'error', {message: 'Use `globalThis` instead.', name: 'global'}, ], 'no-restricted-imports': [ 'error', {message: 'Please use graceful-fs instead.', name: 'fs'}, ], 'no-restricted-modules': 'off', 'no-restricted-syntax': 'off', 'no-return-assign': 'off', 'no-script-url': 'error', 'no-self-compare': 'warn', 'no-sequences': 'warn', 'no-shadow': 'off', 'no-shadow-restricted-names': 'warn', 'no-sparse-arrays': 'error', 'no-sync': 'off', 'no-ternary': 'off', 'no-this-before-super': 'error', 'no-throw-literal': 'error', 'no-undef': 'error', 'no-undef-init': 'off', 'no-undefined': 'off', 'no-underscore-dangle': 'off', 'no-unneeded-ternary': 'warn', 'no-unreachable': 'error', 'no-unused-expressions': 'off', 'no-unused-vars': ['error', {argsIgnorePattern: '^_'}], 'no-use-before-define': 'off', 'no-useless-call': 'error', 'no-useless-computed-key': 'error', 'no-useless-concat': 'error', 'no-var': 'error', 'no-void': 'off', 'no-warn-comments': 'off', 'no-with': 'off', 'object-shorthand': 'error', 'one-var': ['warn', {initialized: 'never'}], 'operator-assignment': ['warn', 'always'], 'operator-linebreak': 'off', 'padded-blocks': 'off', 'prefer-arrow-callback': ['error', {allowNamedFunctions: true}], 'prefer-const': 'error', 'prefer-template': 'error', quotes: [ 'error', 'single', {allowTemplateLiterals: false, avoidEscape: true}, ], radix: 'warn', 'require-jsdoc': 'off', 'require-yield': 'off', 'sort-imports': ['error', {ignoreDeclarationSort: true}], 'sort-keys': 'error', 'sort-vars': 'off', 'spaced-comment': ['off', 'always', {exceptions: ['eslint', 'global']}], strict: 'off', 'use-isnan': 'error', 'valid-jsdoc': 'off', 'valid-typeof': 'error', 'vars-on-top': 'off', 'wrap-iife': 'off', 'wrap-regex': 'off', yoda: 'off', 'unicorn/explicit-length-check': 'error', 'unicorn/no-array-for-each': 'error', 'unicorn/no-negated-condition': 'error', 'unicorn/prefer-default-parameters': 'error', 'unicorn/prefer-includes': 'error', 'unicorn/template-indent': 'error', }, settings: { 'import/ignore': ['react-native'], // using `new RegExp` makes sure to escape `/` 'import/internal-regex': new RegExp( getPackages() .map(pkg => `^${pkg}$`) .join('|'), ).source, 'import/resolver': { typescript: {}, }, }, };
.eslintrc.cjs
1
https://github.com/jestjs/jest/commit/bd2305b374ff976e67579f188559d25d69443c30
[ 0.00017719806055538356, 0.00017304504581261426, 0.00016675434017088264, 0.0001729859213810414, 0.000002116169071086915 ]
{ "id": 7, "code_window": [ " * is called to store/update this information on the cache map.\n", " */\n", "export default class TestSequencer {\n", " private readonly _cache = new Map<TestContext, Cache>();\n", "\n", " // eslint-disable-next-line @typescript-eslint/no-empty-function\n", " constructor(_options: TestSequencerOptions) {}\n", "\n", " _getCachePath(testContext: TestContext): string {\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " // eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-useless-constructor\n" ], "file_path": "packages/jest-test-sequencer/src/index.ts", "type": "replace", "edit_start_line_idx": 54 }
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`snapshots all have results (after update) 1`] = ` "<bold>Snapshot Summary</intensity> <bold><green> › 1 snapshot written </color></intensity>from 1 test suite. <bold><red> › 1 snapshot failed</color></intensity> from 1 test suite. <dim>Inspect your code changes or run \`yarn test -u\` to update them.</intensity> <bold><green> › 1 snapshot updated </color></intensity>from 1 test suite. <bold><green> › 1 snapshot file removed </color></intensity>from 1 test suite. <bold><green> › 1 snapshot removed </color></intensity>from 1 test suite. ↳ <dim>../path/to/</intensity><bold>suite_one</intensity> • unchecked snapshot 1 <bold>Test Suites: </intensity><bold><red>1 failed</color></intensity>, 1 total <bold>Tests: </intensity><bold><red>1 failed</color></intensity>, 1 total <bold>Snapshots: </intensity><bold><red>1 failed</color></intensity>, <bold><green>1 removed</color></intensity>, <bold><green>1 file removed</color></intensity>, <bold><green>1 updated</color></intensity>, <bold><green>1 written</color></intensity>, <bold><green>2 passed</color></intensity>, 2 total <bold>Time:</intensity> 0.01 s <dim>Ran all test suites</intensity><dim>.</intensity> " `; exports[`snapshots all have results (no update) 1`] = ` "<bold>Snapshot Summary</intensity> <bold><green> › 1 snapshot written </color></intensity>from 1 test suite. <bold><red> › 1 snapshot failed</color></intensity> from 1 test suite. <dim>Inspect your code changes or run \`yarn test -u\` to update them.</intensity> <bold><green> › 1 snapshot updated </color></intensity>from 1 test suite. <bold><yellow> › 1 snapshot file obsolete </color></intensity>from 1 test suite. <dim>To remove it, run \`yarn test -u\`.</intensity> <bold><yellow> › 1 snapshot obsolete </color></intensity>from 1 test suite. <dim>To remove it, run \`yarn test -u\`.</intensity> ↳ <dim>../path/to/</intensity><bold>suite_one</intensity> • unchecked snapshot 1 <bold>Test Suites: </intensity><bold><red>1 failed</color></intensity>, 1 total <bold>Tests: </intensity><bold><red>1 failed</color></intensity>, 1 total <bold>Snapshots: </intensity><bold><red>1 failed</color></intensity>, <bold><yellow>1 obsolete</color></intensity>, <bold><yellow>1 file obsolete</color></intensity>, <bold><green>1 updated</color></intensity>, <bold><green>1 written</color></intensity>, <bold><green>2 passed</color></intensity>, 2 total <bold>Time:</intensity> 0.01 s <dim>Ran all test suites</intensity><dim>.</intensity> " `; exports[`snapshots needs update with npm test 1`] = ` "<bold>Snapshot Summary</intensity> <bold><red> › 2 snapshots failed</color></intensity> from 1 test suite. <dim>Inspect your code changes or run \`npm test -- -u\` to update them.</intensity> <bold>Test Suites: </intensity><bold><red>1 failed</color></intensity>, 1 total <bold>Tests: </intensity><bold><red>1 failed</color></intensity>, 1 total <bold>Snapshots: </intensity><bold><red>2 failed</color></intensity>, 2 total <bold>Time:</intensity> 0.01 s <dim>Ran all test suites</intensity><dim>.</intensity> " `; exports[`snapshots needs update with yarn test 1`] = ` "<bold>Snapshot Summary</intensity> <bold><red> › 2 snapshots failed</color></intensity> from 1 test suite. <dim>Inspect your code changes or run \`yarn test -u\` to update them.</intensity> <bold>Test Suites: </intensity><bold><red>1 failed</color></intensity>, 1 total <bold>Tests: </intensity><bold><red>1 failed</color></intensity>, 1 total <bold>Snapshots: </intensity><bold><red>2 failed</color></intensity>, 2 total <bold>Time:</intensity> 0.01 s <dim>Ran all test suites</intensity><dim>.</intensity> " `; exports[`summaryThreshold option Should not print failure messages when number of test suites is equal to the threshold 1`] = ` "<bold>Test Suites: </intensity><bold><red>1 failed</color></intensity>, <bold><green>2 passed</color></intensity>, 3 total <bold>Tests: </intensity><bold><red>1 failed</color></intensity>, 3 total <bold>Snapshots: </intensity>0 total <bold>Time:</intensity> 0.01 s <dim>Ran all test suites</intensity><dim>.</intensity> " `; exports[`summaryThreshold option Should not print failure messages when number of test suites is under the threshold 1`] = ` "<bold>Test Suites: </intensity><bold><red>1 failed</color></intensity>, <bold><green>2 passed</color></intensity>, 3 total <bold>Tests: </intensity><bold><red>1 failed</color></intensity>, 3 total <bold>Snapshots: </intensity>0 total <bold>Time:</intensity> 0.01 s <dim>Ran all test suites</intensity><dim>.</intensity> " `; exports[`summaryThreshold option Should print failure messages when number of test suites is over the threshold 1`] = ` "<bold>Summary of all failing tests</intensity> </><inverse><bold><red> FAIL </color></intensity></inverse></> <dim>../</intensity><bold>path1</intensity> FailureMessage1 </><inverse><bold><red> FAIL </color></intensity></inverse></> <dim>../</intensity><bold>path2</intensity> FailureMessage2 <bold>Test Suites: </intensity><bold><red>1 failed</color></intensity>, <bold><green>2 passed</color></intensity>, 3 total <bold>Tests: </intensity><bold><red>1 failed</color></intensity>, 3 total <bold>Snapshots: </intensity>0 total <bold>Time:</intensity> 0.01 s <dim>Ran all test suites</intensity><dim>.</intensity> " `;
packages/jest-reporters/src/__tests__/__snapshots__/SummaryReporter.test.js.snap
0
https://github.com/jestjs/jest/commit/bd2305b374ff976e67579f188559d25d69443c30
[ 0.0001762787433108315, 0.000173683583852835, 0.0001714995742077008, 0.00017362507060170174, 0.000001485310122006922 ]
{ "id": 7, "code_window": [ " * is called to store/update this information on the cache map.\n", " */\n", "export default class TestSequencer {\n", " private readonly _cache = new Map<TestContext, Cache>();\n", "\n", " // eslint-disable-next-line @typescript-eslint/no-empty-function\n", " constructor(_options: TestSequencerOptions) {}\n", "\n", " _getCachePath(testContext: TestContext): string {\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " // eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-useless-constructor\n" ], "file_path": "packages/jest-test-sequencer/src/index.ts", "type": "replace", "edit_start_line_idx": 54 }
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ export default () => 'unmocked';
e2e/babel-plugin-jest-hoist/__test_modules__/e.js
0
https://github.com/jestjs/jest/commit/bd2305b374ff976e67579f188559d25d69443c30
[ 0.00016086761024780571, 0.00016086761024780571, 0.00016086761024780571, 0.00016086761024780571, 0 ]
{ "id": 7, "code_window": [ " * is called to store/update this information on the cache map.\n", " */\n", "export default class TestSequencer {\n", " private readonly _cache = new Map<TestContext, Cache>();\n", "\n", " // eslint-disable-next-line @typescript-eslint/no-empty-function\n", " constructor(_options: TestSequencerOptions) {}\n", "\n", " _getCachePath(testContext: TestContext): string {\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " // eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-useless-constructor\n" ], "file_path": "packages/jest-test-sequencer/src/index.ts", "type": "replace", "edit_start_line_idx": 54 }
--- id: asynchronous title: Testing Asynchronous Code --- It's common in JavaScript for code to run asynchronously. When you have code that runs asynchronously, Jest needs to know when the code it is testing has completed, before it can move on to another test. Jest has several ways to handle this. ## Promises Return a promise from your test, and Jest will wait for that promise to resolve. If the promise is rejected, the test will fail. For example, let's say that `fetchData` returns a promise that is supposed to resolve to the string `'peanut butter'`. We could test it with: ```js test('the data is peanut butter', () => { return fetchData().then(data => { expect(data).toBe('peanut butter'); }); }); ``` ## Async/Await Alternatively, you can use `async` and `await` in your tests. To write an async test, use the `async` keyword in front of the function passed to `test`. For example, the same `fetchData` scenario can be tested with: ```js test('the data is peanut butter', async () => { const data = await fetchData(); expect(data).toBe('peanut butter'); }); test('the fetch fails with an error', async () => { expect.assertions(1); try { await fetchData(); } catch (e) { expect(e).toMatch('error'); } }); ``` You can combine `async` and `await` with `.resolves` or `.rejects`. ```js test('the data is peanut butter', async () => { await expect(fetchData()).resolves.toBe('peanut butter'); }); test('the fetch fails with an error', async () => { await expect(fetchData()).rejects.toMatch('error'); }); ``` In these cases, `async` and `await` are effectively syntactic sugar for the same logic as the promises example uses. :::caution Be sure to return (or `await`) the promise - if you omit the `return`/`await` statement, your test will complete before the promise returned from `fetchData` resolves or rejects. ::: If you expect a promise to be rejected, use the `.catch` method. Make sure to add `expect.assertions` to verify that a certain number of assertions are called. Otherwise, a fulfilled promise would not fail the test. ```js test('the fetch fails with an error', () => { expect.assertions(1); return fetchData().catch(e => expect(e).toMatch('error')); }); ``` ## Callbacks If you don't use promises, you can use callbacks. For example, let's say that `fetchData`, instead of returning a promise, expects a callback, i.e. fetches some data and calls `callback(null, data)` when it is complete. You want to test that this returned data is the string `'peanut butter'`. By default, Jest tests complete once they reach the end of their execution. That means this test will _not_ work as intended: ```js // Don't do this! test('the data is peanut butter', () => { function callback(error, data) { if (error) { throw error; } expect(data).toBe('peanut butter'); } fetchData(callback); }); ``` The problem is that the test will complete as soon as `fetchData` completes, before ever calling the callback. There is an alternate form of `test` that fixes this. Instead of putting the test in a function with an empty argument, use a single argument called `done`. Jest will wait until the `done` callback is called before finishing the test. ```js test('the data is peanut butter', done => { function callback(error, data) { if (error) { done(error); return; } try { expect(data).toBe('peanut butter'); done(); } catch (error) { done(error); } } fetchData(callback); }); ``` If `done()` is never called, the test will fail (with timeout error), which is what you want to happen. If the `expect` statement fails, it throws an error and `done()` is not called. If we want to see in the test log why it failed, we have to wrap `expect` in a `try` block and pass the error in the `catch` block to `done`. Otherwise, we end up with an opaque timeout error that doesn't show what value was received by `expect(data)`. :::caution Jest will throw an error, if the same test function is passed a `done()` callback and returns a promise. This is done as a precaution to avoid memory leaks in your tests. ::: ## `.resolves` / `.rejects` You can also use the `.resolves` matcher in your expect statement, and Jest will wait for that promise to resolve. If the promise is rejected, the test will automatically fail. ```js test('the data is peanut butter', () => { return expect(fetchData()).resolves.toBe('peanut butter'); }); ``` Be sure to return the assertion—if you omit this `return` statement, your test will complete before the promise returned from `fetchData` is resolved and then() has a chance to execute the callback. If you expect a promise to be rejected, use the `.rejects` matcher. It works analogically to the `.resolves` matcher. If the promise is fulfilled, the test will automatically fail. ```js test('the fetch fails with an error', () => { return expect(fetchData()).rejects.toMatch('error'); }); ``` None of these forms is particularly superior to the others, and you can mix and match them across a codebase or even in a single file. It just depends on which style you feel makes your tests simpler.
website/versioned_docs/version-29.7/TestingAsyncCode.md
0
https://github.com/jestjs/jest/commit/bd2305b374ff976e67579f188559d25d69443c30
[ 0.00017639411089476198, 0.000171352963661775, 0.00016073390725068748, 0.00017249029770027846, 0.000004318901574151823 ]
{ "id": 0, "code_window": [ " // Size\n", " genCardSizeStyle(cardToken),\n", "\n", " // RTL\n", " genCardRTLStyle(cardToken),\n", " ];\n", "});" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep" ], "after_edit": [ "\n", " antCardLoading,\n" ], "file_path": "components/card/style/index.tsx", "type": "add", "edit_start_line_idx": 479 }
{ "name": "antd", "version": "4.20.0-alpha.0", "description": "An enterprise-class UI design language and React components implementation", "title": "Ant Design", "keywords": [ "ant", "component", "components", "design", "framework", "frontend", "react", "react-component", "ui" ], "homepage": "https://ant.design", "bugs": { "url": "https://github.com/ant-design/ant-design/issues" }, "repository": { "type": "git", "url": "https://github.com/ant-design/ant-design" }, "license": "MIT", "contributors": [ "ant" ], "funding": { "type": "opencollective", "url": "https://opencollective.com/ant-design" }, "files": [ "dist", "lib", "es" ], "sideEffects": [ "dist/*", "es/**/style/*", "lib/**/style/*", "*.less" ], "main": "lib/index.js", "module": "es/index.js", "unpkg": "dist/antd.min.js", "typings": "lib/index.d.ts", "scripts": { "prepare": "husky install", "api-collection": "antd-tools run api-collection", "authors": "node ./scripts/generate-authors", "build": "npm run compile && NODE_OPTIONS='--max-old-space-size=4096' npm run dist", "bundlesize": "bundlesize", "check-commit": "node ./scripts/check-commit", "check-ts-demo": "node ./scripts/check-ts-demo", "clean": "antd-tools run clean && rm -rf es lib coverage dist report.html", "clean-lockfiles": "rm -rf package-lock.json yarn.lock", "prestart": "npm run version", "precompile": "npm run version", "pretest": "npm run version", "predist": "npm run version", "presite": "npm run version", "compile": "npm run clean && antd-tools run compile", "changelog": "node ./scripts/print-changelog", "predeploy": "antd-tools run clean && npm run site && cp CNAME _site && npm run site:test", "deploy": "bisheng gh-pages --push-only --dotfiles", "deploy:china-mirror": "git checkout gh-pages && git pull origin gh-pages && git push [email protected]:ant-design/ant-design.git gh-pages", "dist": "antd-tools run dist", "dist:esbuild": "ESBUILD=true npm run dist", "dist:esbuild-no-dup-check": "ESBUILD=true NO_DUP_CHECK=true npm run dist", "lint": "npm run tsc && npm run lint:script && npm run lint:demo && npm run lint:style && npm run lint:deps && npm run lint:md", "lint-fix": "npm run lint-fix:script && npm run lint-fix:demo && npm run lint-fix:style", "lint-fix:demo": "npm run lint:demo -- --fix", "lint-fix:script": "npm run lint:script -- --fix", "lint-fix:style": "npm run lint:style -- --fix", "lint:demo": "eslint components/*/demo/*.md", "lint:deps": "antd-tools run deps-lint", "lint:md": "remark . -f -q", "lint:script": "eslint . --ext .js,.jsx,.ts,.tsx", "lint:style": "stylelint '{site,components}/**/*.less'", "pre-publish": "npm run test-all -- --skip-build", "prettier": "prettier -c --write **/*", "pretty-quick": "pretty-quick", "pub": "npm run version && antd-tools run pub", "prepublishOnly": "antd-tools run guard", "postpublish": "node ./scripts/post-script.js", "site:theme": "npm run site:theme-dark && npm run site:theme-compact", "site:theme-dark": "cross-env ESBUILD=1 ANT_THEME=dark bisheng build -c ./site/bisheng.config.js", "site:theme-compact": "cross-env ESBUILD=1 ANT_THEME=compact bisheng build -c ./site/bisheng.config.js", "site": "npm run site:theme && cross-env NODE_ICU_DATA=node_modules/full-icu ESBUILD=1 bisheng build --ssr -c ./site/bisheng.config.js", "site-tmp": "cross-env NODE_ICU_DATA=node_modules/full-icu ESBUILD=1 bisheng build --ssr -c ./site/bisheng.config.js", "sort": "npx sort-package-json", "sort-api": "antd-tools run sort-api-table", "start": "antd-tools run clean && cross-env NODE_ENV=development concurrently \"bisheng start -c ./site/bisheng.config.js\"", "test": "jest --config .jest.js --cache=false", "test:update": "jest --config .jest.js --cache=false -u", "test-all": "sh -e ./scripts/test-all.sh", "test-node": "npm run version && jest --config .jest.node.js --cache=false", "tsc": "tsc --noEmit", "site:test": "jest --config .jest.site.js --cache=false --force-exit", "test-image": "npm run dist && docker-compose run tests", "version": "node ./scripts/generate-version", "install-react-16": "npm i --no-save --legacy-peer-deps react@16 react-dom@16 enzyme-adapter-react-16", "install-react-17": "npm i --no-save --legacy-peer-deps react@17 react-dom@17", "install-react-18": "npm i --no-save --legacy-peer-deps react@18 react-dom@18 @testing-library/react@13", "argos": "argos upload imageSnapshots" }, "browserslist": [ "> 0.5%", "last 2 versions", "Firefox ESR", "not dead", "IE 11", "not IE 10" ], "dependencies": { "@ant-design/colors": "^6.0.0", "@ant-design/cssinjs": "^0.0.0-alpha.26", "@ant-design/icons": "^4.7.0", "@ant-design/react-slick": "~0.28.1", "@babel/runtime": "^7.12.5", "@ctrl/tinycolor": "^3.4.0", "classnames": "^2.2.6", "copy-to-clipboard": "^3.2.0", "lodash": "^4.17.21", "memoize-one": "^6.0.0", "moment": "^2.29.2", "rc-cascader": "~3.5.0", "rc-checkbox": "~2.3.0", "rc-collapse": "~3.1.0", "rc-dialog": "~8.7.0", "rc-drawer": "~4.4.2", "rc-dropdown": "~3.4.0", "rc-field-form": "~1.26.1", "rc-image": "~5.5.0", "rc-input": "~0.0.1-alpha.5", "rc-input-number": "~7.3.0", "rc-mentions": "~1.7.0", "rc-menu": "~9.5.1", "rc-motion": "^2.4.4", "rc-notification": "~4.6.0", "rc-pagination": "~3.1.9", "rc-picker": "~2.6.4", "rc-progress": "~3.2.1", "rc-rate": "~2.9.0", "rc-resize-observer": "^1.2.0", "rc-segmented": "~1.3.0", "rc-select": "~14.1.1", "rc-slider": "~10.0.0", "rc-steps": "~4.1.0", "rc-switch": "~3.2.0", "rc-table": "~7.24.0", "rc-tabs": "~11.12.0", "rc-textarea": "~0.3.0", "rc-tooltip": "~5.1.1", "rc-tree": "~5.5.0", "rc-tree-select": "~5.3.0", "rc-trigger": "^5.2.10", "rc-upload": "~4.3.0", "rc-util": "^5.20.0", "scroll-into-view-if-needed": "^2.2.25", "shallowequal": "^1.1.0" }, "devDependencies": { "@ant-design/bisheng-plugin": "^3.0.1", "@ant-design/hitu": "^0.0.0-alpha.13", "@ant-design/tools": "^14.1.0", "@docsearch/css": "^3.0.0", "@qixian.cs/github-contributors-list": "^1.0.3", "@stackblitz/sdk": "^1.3.0", "@testing-library/jest-dom": "^5.16.3", "@testing-library/react": "^12.0.0", "@types/enzyme": "^3.10.5", "@types/gtag.js": "^0.0.10", "@types/jest": "^27.0.0", "@types/jest-axe": "^3.5.3", "@types/jest-environment-puppeteer": "^5.0.0", "@types/jest-image-snapshot": "^4.1.0", "@types/lodash": "^4.14.139", "@types/puppeteer": "^5.4.0", "@types/react": "^18.0.0", "@types/react-color": "^3.0.1", "@types/react-copy-to-clipboard": "^5.0.0", "@types/react-dom": "^18.0.0", "@types/react-window": "^1.8.2", "@types/shallowequal": "^1.1.1", "@types/warning": "^3.0.0", "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^5.0.0", "@wojtekmaj/enzyme-adapter-react-17": "^0.6.0", "antd-img-crop": "^4.0.0", "argos-cli": "^0.3.0", "array-move": "^4.0.0", "babel-plugin-add-react-displayname": "^0.0.5", "bisheng": "^3.2.1", "bisheng-plugin-description": "^0.1.4", "bisheng-plugin-react": "^1.2.0", "bisheng-plugin-toc": "^0.4.4", "bundlesize": "^0.18.0", "chalk": "^4.0.0", "cheerio": "^1.0.0-rc.3", "concurrently": "^7.0.0", "cross-env": "^7.0.0", "css-minimizer-webpack-plugin": "^3.2.0", "dekko": "^0.2.1", "docsearch-react-fork": "^0.0.0-alpha.0", "docsearch.js": "^2.6.3", "duplicate-package-checker-webpack-plugin": "^3.0.0", "enquire-js": "^0.2.1", "enzyme": "^3.10.0", "enzyme-to-json": "^3.6.0", "esbuild-loader": "^2.13.1", "eslint": "^8.0.0", "eslint-config-airbnb": "^19.0.0", "eslint-config-prettier": "^8.0.0", "eslint-plugin-babel": "^5.3.0", "eslint-plugin-compat": "^4.0.0", "eslint-plugin-import": "^2.21.1", "eslint-plugin-jest": "^26.0.0", "eslint-plugin-jsx-a11y": "^6.2.1", "eslint-plugin-markdown": "^2.0.0", "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.1.2", "eslint-plugin-unicorn": "^42.0.0", "fetch-jsonp": "^1.1.3", "fs-extra": "^10.0.0", "full-icu": "^1.3.0", "glob": "^8.0.1", "highlight.js": "^11.5.0", "http-server": "^14.0.0", "husky": "^7.0.1", "identity-obj-proxy": "^3.0.0", "immer": "^9.0.1", "immutability-helper": "^3.0.0", "inquirer": "^8.0.0", "intersection-observer": "^0.12.0", "isomorphic-fetch": "^3.0.0", "jest": "^27.0.3", "jest-axe": "^6.0.0", "jest-environment-node": "^27.4.4", "jest-image-snapshot": "^4.5.1", "jest-puppeteer": "^6.0.0", "jquery": "^3.4.1", "jsdom": "^19.0.0", "jsonml.js": "^0.1.0", "less-vars-to-js": "^1.3.0", "lz-string": "^1.4.4", "mini-css-extract-plugin": "^2.4.5", "mockdate": "^3.0.0", "open": "^8.0.1", "prettier": "^2.3.2", "prettier-plugin-jsdoc": "^0.3.0", "pretty-quick": "^3.0.0", "qs": "^6.10.1", "rc-footer": "^0.6.6", "rc-tween-one": "^3.0.3", "rc-virtual-list": "^3.4.2", "react": "^17.0.0", "react-color": "^2.17.3", "react-copy-to-clipboard": "^5.0.1", "react-dnd": "^15.0.0", "react-dnd-html5-backend": "^15.0.0", "react-dom": "^17.0.0", "react-draggable": "^4.4.3", "react-fast-marquee": "^1.2.1", "react-github-button": "^0.1.11", "react-helmet-async": "~1.3.0", "react-highlight-words": "^0.18.0", "react-infinite-scroll-component": "^6.1.0", "react-intl": "^5.20.4", "react-resizable": "^3.0.1", "react-router-dom": "^6.0.2", "react-sortable-hoc": "^2.0.0", "react-sticky": "^6.0.3", "react-text-loop-next": "0.0.3", "react-window": "^1.8.5", "remark": "^14.0.1", "remark-cli": "^10.0.0", "remark-lint": "^9.0.0", "remark-preset-lint-recommended": "^6.0.0", "remove-files-webpack-plugin": "^1.4.5", "rimraf": "^3.0.0", "scrollama": "^3.0.0", "semver": "^7.3.5", "simple-git": "^3.0.0", "string-replace-loader": "^3.0.3", "stylelint": "^14.0.0", "stylelint-config-prettier": "^9.0.2", "stylelint-config-rational-order": "^0.1.2", "stylelint-config-standard": "^25.0.0", "stylelint-declaration-block-no-ignored-properties": "^2.1.0", "stylelint-order": "^5.0.0", "theme-switcher": "^1.0.2", "typescript": "~4.6.2", "webpack-bundle-analyzer": "^4.1.0", "xhr-mock": "^2.4.1", "yaml-front-matter": "^4.0.0" }, "peerDependencies": { "react": ">=16.9.0", "react-dom": ">=16.9.0" }, "publishConfig": { "registry": "https://registry.npmjs.org/" }, "bundlesize": [ { "path": "./dist/antd.min.js", "maxSize": "350 kB" }, { "path": "./dist/antd.min.css", "maxSize": "66 kB" }, { "path": "./dist/antd.dark.min.css", "maxSize": "67 kB" }, { "path": "./dist/antd.compact.min.css", "maxSize": "66 kB" }, { "path": "./dist/antd.variable.min.css", "maxSize": "67 kB" } ], "tnpm": { "mode": "npm" } }
package.json
1
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00018293209723196924, 0.00017075329378712922, 0.00016759760910645127, 0.0001705784525256604, 0.000002397727712377673 ]
{ "id": 0, "code_window": [ " // Size\n", " genCardSizeStyle(cardToken),\n", "\n", " // RTL\n", " genCardRTLStyle(cardToken),\n", " ];\n", "});" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep" ], "after_edit": [ "\n", " antCardLoading,\n" ], "file_path": "components/card/style/index.tsx", "type": "add", "edit_start_line_idx": 479 }
--- category: Components type: Layout cols: 1 title: Grid cover: https://gw.alipayobjects.com/zos/alicdn/5rWLU27so/Grid.svg --- 24 Grids System. ## Design concept <div class="grid-demo"> <img src="https://gw.alipayobjects.com/zos/bmw-prod/9189c9ef-c601-40dc-9960-c11dbb681888.svg" alt="grid design" /> </div> In most business situations, Ant Design needs to solve a lot of information storage problems within the design area, so based on 12 Grids System, we divided the design area into 24 sections. We name the divided area 'box'. We suggest four boxes for horizontal arrangement at most, one at least. Boxes are proportional to the entire screen as shown in the picture above. To ensure a high level of visual comfort, we customize the typography inside of the box based on the box unit. ## Outline In the grid system, we define the frame outside the information area based on `row` and `column`, to ensure that every area can have stable arrangement. Following is a brief look at how it works: - Establish a set of `column` in the horizontal space defined by `row` (abbreviated col). - Your content elements should be placed directly in the `col`, and only `col` should be placed directly in `row`. - The column grid system is a value of 1-24 to represent its range spans. For example, three columns of equal width can be created by `<Col span={8} />`. - If the sum of `col` spans in a `row` are more than 24, then the overflowing `col` as a whole will start a new line arrangement. Our grid systems base on Flex layout to allow the elements within the parent to be aligned horizontally - left, center, right, wide arrangement, and decentralized arrangement. The Grid system also supports vertical alignment - top aligned, vertically centered, bottom-aligned. You can also define the order of elements by using `order`. Layout uses a 24 grid layout to define the width of each "box", but does not rigidly adhere to the grid layout. ## API If the Ant Design grid layout component does not meet your needs, you can use the excellent layout components of the community: - [react-flexbox-grid](http://roylee0704.github.io/react-flexbox-grid/) - [react-blocks](https://github.com/whoisandy/react-blocks/) ### Row | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | | align | Vertical alignment | `top` \| `middle` \| `bottom` | `top` | | | gutter | Spacing between grids, could be a number or a object like { xs: 8, sm: 16, md: 24}. Or you can use array to make horizontal and vertical spacing work at the same time `[horizontal, vertical]` | number \| object \| array | 0 | | | justify | Horizontal arrangement | `start` \| `end` \| `center` \| `space-around` \| `space-between` \| `space-evenly` | `start` | | | wrap | Auto wrap line | boolean | true | 4.8.0 | ### Col | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | | flex | Flex layout style | string \| number | - | | | offset | The number of cells to offset Col from the left | number | 0 | | | order | Raster order | number | 0 | | | pull | The number of cells that raster is moved to the left | number | 0 | | | push | The number of cells that raster is moved to the right | number | 0 | | | span | Raster number of cells to occupy, 0 corresponds to `display: none` | number | none | | | xs | `screen < 576px` and also default setting, could be a `span` value or an object containing above props | number \| object | - | | | sm | `screen ≥ 576px`, could be a `span` value or an object containing above props | number \| object | - | | | md | `screen ≥ 768px`, could be a `span` value or an object containing above props | number \| object | - | | | lg | `screen ≥ 992px`, could be a `span` value or an object containing above props | number \| object | - | | | xl | `screen ≥ 1200px`, could be a `span` value or an object containing above props | number \| object | - | | | xxl | `screen ≥ 1600px`, could be a `span` value or an object containing above props | number \| object | - | | The breakpoints of responsive grid follow [BootStrap 4 media queries rules](https://getbootstrap.com/docs/4.0/layout/overview/#responsive-breakpoints) (not including `occasionally part`). <style> [data-theme="dark"] #components-grid-demo-playground pre { background: rgba(255,255,255,0.8); color: rgba(255,255,255,.65); } </style>
components/grid/index.en-US.md
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017446812125854194, 0.00016895346925593913, 0.00016343477182090282, 0.00016808278451208025, 0.0000033928124594240217 ]
{ "id": 0, "code_window": [ " // Size\n", " genCardSizeStyle(cardToken),\n", "\n", " // RTL\n", " genCardRTLStyle(cardToken),\n", " ];\n", "});" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep" ], "after_edit": [ "\n", " antCardLoading,\n" ], "file_path": "components/card/style/index.tsx", "type": "add", "edit_start_line_idx": 479 }
import React from 'react'; import { Tabs } from 'antd'; const { TabPane } = Tabs; const LANGS = { tsx: 'TypeScript', jsx: 'JavaScript', }; const CodePreview = ({ toReactComponent, codes }) => { const langList = Object.keys(codes).sort().reverse(); let content; if (langList.length === 1) { content = toReactComponent([ 'pre', { lang: langList[0], highlighted: codes[langList[0]], }, ]); } else { content = ( <Tabs> {langList.map(lang => ( <TabPane tab={LANGS[lang]} key={lang}> {toReactComponent([ 'pre', { lang, highlighted: codes[lang], }, ])} </TabPane> ))} </Tabs> ); } return <div className="highlight">{content}</div>; }; export default CodePreview;
site/theme/template/Content/Demo/CodePreview.jsx
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017639173893257976, 0.00017148276674561203, 0.00016704414156265557, 0.00017017700884025544, 0.000003278844587839558 ]
{ "id": 0, "code_window": [ " // Size\n", " genCardSizeStyle(cardToken),\n", "\n", " // RTL\n", " genCardRTLStyle(cardToken),\n", " ];\n", "});" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep" ], "after_edit": [ "\n", " antCardLoading,\n" ], "file_path": "components/card/style/index.tsx", "type": "add", "edit_start_line_idx": 479 }
--- order: 4 title: zh-CN: 禁用 en-US: Disabled --- ## zh-CN 选择框的不可用状态。你也可以通过数组单独禁用 RangePicker 的其中一项。 ## en-US A disabled state of the `DatePicker`. You can also set as array to disable one of input. ```jsx import { DatePicker, Space } from 'antd'; import moment from 'moment'; const { RangePicker } = DatePicker; const dateFormat = 'YYYY-MM-DD'; export default () => ( <Space direction="vertical" size={12}> <DatePicker defaultValue={moment('2015-06-06', dateFormat)} disabled /> <DatePicker picker="month" defaultValue={moment('2015-06', 'YYYY-MM')} disabled /> <RangePicker defaultValue={[moment('2015-06-06', dateFormat), moment('2015-06-06', dateFormat)]} disabled /> <RangePicker defaultValue={[moment('2019-09-03', dateFormat), moment('2019-11-22', dateFormat)]} disabled={[false, true]} /> </Space> ); ```
components/date-picker/demo/disabled.md
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017642506281845272, 0.00017360321362502873, 0.00017177419795189053, 0.00017310681869275868, 0.0000018606297089718282 ]
{ "id": 1, "code_window": [ " genPickerStyle(pickerToken),\n", " genPanelStyle(pickerToken),\n", " genPickerStatusStyle(pickerToken),\n", " ];\n", " },\n", " token => ({\n", " zIndexDropdown: token.zIndexPopup + 50,\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " slideDownIn,\n", " slideDownOut,\n", " slideUpIn,\n", " slideUpOut,\n" ], "file_path": "components/date-picker/style/index.tsx", "type": "add", "edit_start_line_idx": 1000 }
// deps-lint-skip-all import { CSSObject } from '@ant-design/cssinjs'; import { TinyColor } from '@ctrl/tinycolor'; import { FullToken, genComponentStyleHook, GenerateStyle, mergeToken, resetComponent, roundedArrow, slideDownIn, slideDownOut, slideUpIn, slideUpOut, } from '../../_util/theme'; import { genActiveStyle, genBasicInputStyle, genHoverStyle, initInputToken, InputToken, } from '../../input/style'; // FIXME: need full token check export interface ComponentToken { zIndexDropdown: number; pickerTextHeight: number; pickerPanelCellWidth: number; pickerPanelCellHeight: number; pickerDateHoverRangeBorderColor: string; pickerBasicCellHoverWithRangeColor: string; pickerPanelWithoutTimeCellHeight: number; pickerTimePanelColumnHeight: number; pickerTimePanelColumnWidth: number; pickerTimePanelCellHeight: number; } type PickerToken = InputToken<FullToken<'DatePicker'>> & { arrowWidth: number; pickerCellInnerCls: string; hashId?: string; }; const genPikerPadding = ( token: PickerToken, inputHeight: number, fontSize: number, paddingHorizontal: number, ): CSSObject => { const fontHeight = Math.floor(fontSize * token.lineHeight) + 2; const paddingTop = Math.max((inputHeight - fontHeight) / 2, 0); const paddingBottom = Math.max(inputHeight - fontHeight - paddingTop, 0); return { padding: `${paddingTop}px ${paddingHorizontal}px ${paddingBottom}px`, }; }; const genPickerStyle: GenerateStyle<PickerToken> = token => { const { componentCls, antCls } = token; return { [componentCls]: { ...resetComponent(token), ...genPikerPadding(token, token.controlHeight, token.fontSize, token.inputPaddingHorizontal), position: 'relative', display: 'inline-flex', alignItems: 'center', background: token.colorBgComponent, border: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorBorder}`, borderRadius: token.radiusBase, transition: `border ${token.motionDurationSlow}, box-shadow ${token.motionDurationSlow}`, '&:hover, &-focused': { ...genHoverStyle(token), }, '&-focused': { ...genActiveStyle(token), }, '&&-disabled': { background: token.colorBgComponentDisabled, borderColor: token.colorBorder, cursor: 'not-allowed', [`${componentCls}-suffix`]: { color: token.colorTextDisabled, }, }, '&&-borderless': { backgroundColor: 'transparent !important', borderColor: 'transparent !important', boxShadow: 'none !important', }, // ======================== Input ========================= [`${componentCls}-input`]: { position: 'relative', display: 'inline-flex', alignItems: 'center', width: '100%', '> input': { ...genBasicInputStyle(token), flex: 'auto', // Fix Firefox flex not correct: // https://github.com/ant-design/ant-design/pull/20023#issuecomment-564389553 minWidth: 1, height: 'auto', padding: 0, background: 'transparent', border: 0, '&:focus': { boxShadow: 'none', }, '&[disabled]': { background: 'transparent', }, }, '&:hover': { [`${componentCls}-clear`]: { opacity: 1, }, }, '&-placeholder': { '> input': { color: token.colorPlaceholder, }, }, }, // Size '&-large': { ...genPikerPadding( token, token.controlHeightLG, token.fontSizeLG, token.inputPaddingHorizontal, ), [`${componentCls}-input > input`]: { fontSize: token.fontSizeLG, }, }, '&-small': { ...genPikerPadding( token, token.controlHeightSM, token.fontSize, token.inputPaddingHorizontalSM, ), }, [`${componentCls}-suffix`]: { display: 'flex', flex: 'none', alignSelf: 'center', marginInlineStart: token.paddingXS / 2, color: token.colorTextDisabled, lineHeight: 1, pointerEvents: 'none', '> *': { verticalAlign: 'top', '&:not(:last-child)': { marginInlineEnd: token.marginXS, }, }, }, [`${componentCls}-clear`]: { position: 'absolute', top: '50%', insetInlineEnd: 0, color: token.colorTextDisabled, lineHeight: 1, background: token.colorBgComponent, transform: 'translateY(-50%)', cursor: 'pointer', opacity: 0, transition: `opacity ${token.motionDurationSlow}, color ${token.motionDurationSlow}`, '> *': { verticalAlign: 'top', }, '&:hover': { color: token.colorTextSecondary, }, }, [`${componentCls}-separator`]: { position: 'relative', display: 'inline-block', width: '1em', height: token.fontSizeLG, color: token.colorTextDisabled, fontSize: token.fontSizeLG, verticalAlign: 'top', cursor: 'default', [`${componentCls}-focused &`]: { color: token.colorTextSecondary, }, [`${componentCls}-range-separator &`]: { [`${componentCls}-disabled &`]: { cursor: 'not-allowed', }, }, }, // ======================== Range ========================= '&-range': { position: 'relative', display: 'inline-flex', // Clear [`${componentCls}-clear`]: { insetInlineEnd: token.inputPaddingHorizontal, }, '&:hover': { [`${componentCls}-clear`]: { opacity: 1, }, }, // Active bar [`${componentCls}-active-bar`]: { bottom: -token.controlLineWidth, height: 2, // FIXME: v4 magic number marginInlineStart: token.inputPaddingHorizontal, background: token.colorPrimary, opacity: 0, transition: `all ${token.motionDurationSlow} ease-out`, pointerEvents: 'none', }, [`&${componentCls}-focused`]: { [`${componentCls}-active-bar`]: { opacity: 1, }, }, [`${componentCls}-range-separator`]: { alignItems: 'center', padding: `0 ${token.paddingXS}px`, lineHeight: 1, }, [`&${componentCls}-small`]: { [`${componentCls}-clear`]: { insetInlineEnd: token.inputPaddingHorizontalSM, }, [`${componentCls}-active-bar`]: { marginInlineStart: token.inputPaddingHorizontalSM, }, }, }, // ======================= Dropdown ======================= '&-dropdown': { ...resetComponent(token), position: 'absolute', zIndex: token.zIndexDropdown, '&&-hidden': { display: 'none', }, '&&-placement-bottomLeft': { [`${componentCls}-range-arrow`]: { top: `${token.arrowWidth / 2 - token.arrowWidth / 3 + 0.7}px`, display: 'block', transform: 'rotate(-135deg) translateY(1px)', }, }, '&&-placement-topLeft': { [`${componentCls}-range-arrow`]: { bottom: `${token.arrowWidth / 2 - token.arrowWidth / 3 + 0.7}px`, display: 'block', transform: 'rotate(45deg)', }, }, [`&${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-topLeft, &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-topRight, &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-topLeft, &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-topRight`]: { animationName: slideDownIn.getName(token.hashId), }, [`&${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-bottomLeft, &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-bottomRight, &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-bottomLeft, &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-bottomRight`]: { animationName: slideUpIn.getName(token.hashId), }, [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-topLeft, &${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-topRight`]: { animationName: slideDownOut.getName(token.hashId), }, [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-bottomLeft, &${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-bottomRight`]: { animationName: slideUpOut.getName(token.hashId), }, // Time picker with additional style [`${componentCls}-panel > ${componentCls}-time-panel`]: { paddingTop: token.paddingXS / 2, }, // ======================== Ranges ======================== [`${componentCls}-ranges`]: { marginBottom: 0, padding: `${token.paddingXS / 2}px ${token.paddingSM}px`, overflow: 'hidden', lineHeight: `${ token.pickerTextHeight - 2 * token.controlLineWidth - token.paddingXS / 2 }px`, textAlign: 'start', listStyle: 'none', display: 'flex', justifyContent: 'space-between', '> li': { display: 'inline-block', }, // https://github.com/ant-design/ant-design/issues/23687 [`${componentCls}-preset > ${antCls}-tag-blue`]: { color: token.colorPrimary, background: token.controlItemBgActive, borderColor: token.colorPrimarySecondary, cursor: 'pointer', }, [`${componentCls}-ok`]: { marginInlineStart: 'auto', }, }, [`${componentCls}-range-wrapper`]: { display: 'flex', }, [`${componentCls}-range-arrow`]: { position: 'absolute', zIndex: 1, display: 'none', width: token.arrowWidth, height: token.arrowWidth, marginInlineStart: token.inputPaddingHorizontal * 1.5, background: `linear-gradient(135deg, transparent 40%, ${token.colorBgComponent} 40%)`, // Use linear-gradient to prevent arrow from covering text boxShadow: `2px 2px 6px -2px fade(#000, 10%)`, // use spread radius to hide shadow over popover, FIXME: v4 magic transition: `left ${token.motionDurationSlow} ease-out`, ...roundedArrow(token.arrowWidth, 5, token.colorBgComponent), }, [`${componentCls}-panel-container`]: { overflow: 'hidden', verticalAlign: 'top', background: token.colorBgComponent, borderRadius: token.radiusBase, boxShadow: token.boxShadow, transition: `margin ${token.motionDurationSlow}`, [`${componentCls}-panels`]: { display: 'inline-flex', flexWrap: 'nowrap', direction: 'ltr', }, [`${componentCls}-panel`]: { verticalAlign: 'top', background: 'transparent', borderWidth: `0 0 ${token.controlLineWidth}px`, borderRadius: 0, [`${componentCls}-content, table`]: { textAlign: 'center', }, '&-focused': { borderColor: token.colorBorder, }, }, }, }, '&-dropdown-range': { padding: `${(token.arrowWidth * 2) / 3}px 0`, '&-hidden': { display: 'none', }, }, '&-rtl': { direction: 'rtl', [`${componentCls}-separator`]: { transform: 'rotate(180deg)', }, [`${componentCls}-footer`]: { '&-extra': { direction: 'rtl', }, }, }, }, }; }; const genPickerCellInnerStyle = (token: PickerToken, cellClassName: string): CSSObject => { const { componentCls } = token; return { '&::before': { position: 'absolute', top: '50%', insetInlineStart: 0, insetInlineEnd: 0, zIndex: 1, height: token.pickerPanelCellHeight, transform: 'translateY(-50%)', transition: `all ${token.motionDurationSlow}`, content: '""', }, // >>> Default [cellClassName]: { position: 'relative', zIndex: 2, display: 'inline-block', minWidth: token.pickerPanelCellHeight, height: token.pickerPanelCellHeight, lineHeight: `${token.pickerPanelCellHeight}px`, borderRadius: token.radiusBase, transition: `background ${token.motionDurationSlow}, border ${token.motionDurationSlow}`, }, // >>> Hover [`&:hover:not(&-in-view), &:hover:not(&-selected):not(&-range-start):not(&-range-end):not(&-range-hover-start):not(&-range-hover-end)`]: { [cellClassName]: { background: token.controlItemBgHover, }, }, // >>> Today [`&-in-view:is(&-today) ${cellClassName}`]: { '&::before': { position: 'absolute', top: 0, insetInlineEnd: 0, bottom: 0, insetInlineStart: 0, zIndex: 1, border: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorPrimary}`, borderRadius: token.radiusBase, content: '""', }, }, // >>> In Range '&-in-view:is(&-in-range)': { position: 'relative', '&::before': { background: token.controlItemBgActive, }, }, // >>> Selected [`&-in-view:is(&-selected) ${cellClassName}, &-in-view:is(&-range-start) ${cellClassName}, &-in-view:is(&-range-end) ${cellClassName}`]: { color: '#fff', // FIXME: text-color-invert background: token.colorPrimary, }, [`&-in-view:is(&-range-start):not(&-range-start-single), &-in-view:is(&-range-end):not(&-range-end-single)`]: { '&::before': { background: token.controlItemBgActive, }, }, '&-in-view:is(&-range-start)::before': { insetInlineStart: '50%', }, '&-in-view:is(&-range-end)::before': { insetInlineEnd: '50%', }, // >>> Range Hover [`&-in-view:is(&-range-hover-start):not(&-in-range):not(&-range-start):not(&-range-end), &-in-view:is(&-range-hover-end):not(&-in-range):not(&-range-start):not(&-range-end), &-in-view:is(&-range-hover-start):is(&-range-start-single), &-in-view:is(&-range-hover-start):is(&-range-start):is(&-range-end):is(&-range-end-near-hover), &-in-view:is(&-range-hover-end):is(&-range-start):is(&-range-end):is(&-range-start-near-hover), &-in-view:is(&-range-hover-end):is(&-range-end-single), &-in-view:is(&-range-hover):not(&-in-range)`]: { '&::after': { position: 'absolute', top: '50%', zIndex: 0, height: token.controlHeightSM, borderTop: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderBottom: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, transform: 'translateY(-50%)', transition: `all ${token.motionDurationSlow}`, content: '""', }, }, // Add space for stash [`&-range-hover-start::after, &-range-hover-end::after, &-range-hover::after`]: { insetInlineEnd: 0, insetInlineStart: 2, // FIXME: v4 magic number }, // Hover with in range [`&-in-view:is(&-in-range):is(&-range-hover)::before, &-in-view:is(&-range-start):is(&-range-hover)::before, &-in-view:is(&-range-end):is(&-range-hover)::before, &-in-view:is(&-range-start):not(&-range-start-single):is(&-range-hover-start)::before, &-in-view:is(&-range-end):not(&-range-end-single):is(&-range-hover-end)::before, ${componentCls}-panel > :not(${componentCls}-date-panel) &-in-view:is(&-in-range):is(&-range-hover-start)::before, ${componentCls}-panel > :not(${componentCls}-date-panel) &-in-view:is(&-in-range):is(&-range-hover-end)::before`]: { background: token.pickerBasicCellHoverWithRangeColor, }, // range start border-radius [`&-in-view:is(&-range-start):not(&-range-start-single):not(&-range-end) ${cellClassName}`]: { borderStartStartRadius: token.radiusBase, borderEndStartRadius: token.radiusBase, borderStartEndRadius: 0, borderEndEndRadius: 0, }, // range end border-radius [`&-in-view:is(&-range-end):not(&-range-end-single):not(&-range-start) ${cellClassName}`]: { borderStartStartRadius: 0, borderEndStartRadius: 0, borderStartEndRadius: token.radiusBase, borderEndEndRadius: token.radiusBase, }, // DatePanel only [`${componentCls}-date-panel &-in-view:is(&-in-range):is(&-range-hover-start) ${cellClassName}, ${componentCls}-date-panel &-in-view:is(&-in-range):is(&-range-hover-end) ${cellClassName}`]: { '&::after': { position: 'absolute', top: 0, bottom: 0, zIndex: -1, background: token.pickerBasicCellHoverWithRangeColor, transition: `all ${token.motionDurationSlow}`, content: '""', }, }, [`${componentCls}-date-panel &-in-view:is(&-in-range):is(&-range-hover-start) ${cellClassName}::after`]: { insetInlineEnd: -5 - token.controlLineWidth, // FIXME: v4 magic number insetInlineStart: 0, }, [`${componentCls}-date-panel &-in-view:is(&-in-range):is(&-range-hover-end) ${cellClassName}::after`]: { insetInlineEnd: 0, insetInlineStart: -5 - token.controlLineWidth, // FIXME: v4 magic number }, // Hover with range start & end '&-range-hover:is(&-range-start)::after': { insetInlineEnd: '50%', }, '&-range-hover:is(&-range-end)::after': { insetInlineStart: '50%', }, // Edge start [`tr > &-in-view:is(&-range-hover):first-child::after, tr > &-in-view:is(&-range-hover-end):first-child::after, &-in-view:is(&-start):is(&-range-hover-edge-start):is(&-range-hover-edge-start-near-range)::after, &-in-view:is(&-range-hover-edge-start):not(&-range-hover-edge-start-near-range)::after, &-in-view:is(&-range-hover-start)::after`]: { insetInlineStart: 6, // FIXME: v4 magic number borderInlineStart: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderStartStartRadius: token.controlLineWidth, borderEndStartRadius: token.controlLineWidth, }, // Edge end [`tr > &-in-view:is(&-range-hover):last-child::after, tr > &-in-view:is(&-range-hover-start):last-child::after, &-in-view:is(&-end):is(&-range-hover-edge-end):is(&-range-hover-edge-end-near-range)::after, &-in-view:is(&-range-hover-edge-end):not(&-range-hover-edge-end-near-range)::after, &-in-view:is(&-range-hover-end)::after`]: { insetInlineEnd: 6, // FIXME: v4 magic number borderInlineEnd: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderStartEndRadius: token.controlLineWidth, borderEndEndRadius: token.controlLineWidth, }, // >>> Disabled '&-disabled': { color: token.colorTextDisabled, pointerEvents: 'none', [cellClassName]: { background: 'transparent', }, '&::before': { background: new TinyColor({ r: 0, g: 0, b: 0, a: 0.04 }).toRgbString(), }, }, [`&-disabled:is(&-today) ${cellClassName}::before`]: { borderColor: token.colorTextDisabled, }, }; }; const genPanelStyle: GenerateStyle<PickerToken> = token => { const { componentCls, pickerCellInnerCls } = token; const pickerArrowSize = 7; // FIXME: v4 magic number const pickerYearMonthCellWidth = 60; // FIXME: v4 magic number const pickerPanelWidth = token.pickerPanelCellWidth * 7 + token.paddingSM * 2 + 4; const hoverCellFixedDistance = (pickerPanelWidth - token.paddingXS * 2) / 3 - pickerYearMonthCellWidth / 2; return { [`${componentCls}-dropdown`]: { [componentCls]: { '&-panel': { display: 'inline-flex', flexDirection: 'column', textAlign: 'center', background: token.colorBgComponent, border: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorBorder}`, borderRadius: token.radiusBase, outline: 'none', '&-focused': { borderColor: token.colorPrimary, }, '&-rtl': { direction: 'rtl', [`${componentCls}-prev-icon, ${componentCls}-super-prev-icon`]: { transform: 'rotate(135deg)', }, [`${componentCls}-next-icon, ${componentCls}-super-next-icon`]: { transform: 'rotate(-45deg)', }, }, }, // ======================================================== // = Shared Panel = // ======================================================== [`&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel`]: { display: 'flex', flexDirection: 'column', width: pickerPanelWidth, }, // ======================= Header ======================= '&-header': { display: 'flex', padding: `0 ${token.paddingXS}px`, color: token.colorTextHeading, borderBottom: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorBorder}`, '> *': { flex: 'none', }, button: { padding: 0, color: token.colorTextDisabled, lineHeight: `${token.pickerTextHeight}px`, background: 'transparent', border: 0, cursor: 'pointer', transition: `color ${token.motionDurationSlow}`, }, '> button': { minWidth: '1.6em', fontSize: token.fontSize, '&:hover': { color: token.colorText, }, }, '&-view': { flex: 'auto', fontWeight: 500, lineHeight: `${token.pickerTextHeight}px`, button: { color: 'inherit', fontWeight: 'inherit', '&:not(:first-child)': { marginInlineStart: token.paddingXS, }, '&:hover': { color: token.colorPrimary, }, }, }, }, // Arrow button [`&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon`]: { position: 'relative', display: 'inline-block', width: pickerArrowSize, height: pickerArrowSize, '&::before': { position: 'absolute', top: 0, insetInlineStart: 0, display: 'inline-block', width: pickerArrowSize, height: pickerArrowSize, border: `0 solid currentcolor`, borderBlockStart: 1.5, // FIXME: v4 magic borderBlockEnd: 0, borderInlineStart: 1.5, // FIXME: v4 magic borderInlineEnd: 0, content: '""', }, }, [`&-super-prev-icon, &-super-next-icon`]: { '&::after': { position: 'absolute', top: Math.ceil(pickerArrowSize / 2), insetInlineStart: Math.ceil(pickerArrowSize / 2), display: 'inline-block', width: pickerArrowSize, height: pickerArrowSize, border: '0 solid currentcolor', borderBlockStart: 1.5, // FIXME: v4 magic borderBlockEnd: 0, borderInlineStart: 1.5, // FIXME: v4 magic borderInlineEnd: 0, content: '""', }, }, [`&-prev-icon, &-super-prev-icon`]: { transform: 'rotate(-45deg)', }, [`&-next-icon, &-super-next-icon`]: { transform: 'rotate(135deg)', }, // ======================== Body ======================== '&-content': { width: '100%', tableLayout: 'fixed', borderCollapse: 'collapse', 'th, td': { position: 'relative', minWidth: 24, // FIXME: v4 magic number fontWeight: 400, }, th: { height: 30, // FIXME: v4 magic number color: token.colorText, lineHeight: '30px', // FIXME: v4 magic string }, }, '&-cell': { padding: `3px 0`, // FIXME: v4 magic string color: token.colorTextDisabled, cursor: 'pointer', // In view '&-in-view': { color: token.colorText, }, ...genPickerCellInnerStyle(token, pickerCellInnerCls), }, [`&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel`]: { [`${componentCls}-content`]: { height: token.pickerPanelWithoutTimeCellHeight * 4, }, [pickerCellInnerCls]: { padding: `0 ${token.paddingXS}px`, }, }, '&-quarter-panel': { [`${componentCls}-content`]: { height: 56, // FIXME: v4 magic number }, }, // ======================== Footer ======================== [`&-panel ${componentCls}-footer`]: { borderTop: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorSplit}`, }, '&-footer': { width: 'min-content', minWidth: '100%', lineHeight: `${token.pickerTextHeight - 2 * token.controlLineWidth}px`, textAlign: 'center', borderBottom: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorSplit}`, '&-extra': { padding: `0 ${token.paddingSM}`, lineHeight: `${token.pickerTextHeight - 2 * token.controlLineWidth}px`, textAlign: 'start', '&:not(:last-child)': { borderBottom: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorBorder}`, }, }, }, '&-now': { textAlign: 'start', }, '&-today-btn': { color: token.colorLink, '&:hover': { color: token.colorLinkHover, }, '&:active': { color: token.colorLinkActive, }, '&:is(&-disabled)': { color: token.colorTextDisabled, cursor: 'not-allowed', }, }, // ======================================================== // = Special = // ======================================================== // ===================== Decade Panel ===================== '&-decade-panel': { [pickerCellInnerCls]: { padding: `0 ${token.paddingXS / 2}px`, }, [`${componentCls}-cell::before`]: { display: 'none', }, }, // ============= Year & Quarter & Month Panel ============= [`&-year-panel, &-quarter-panel, &-month-panel`]: { [`${componentCls}-body`]: { padding: `0 ${token.paddingXS}px`, }, [pickerCellInnerCls]: { width: pickerYearMonthCellWidth, }, [`${componentCls}-cell-range-hover-start::after`]: { insetInlineStart: hoverCellFixedDistance, borderInlineStart: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderStartStartRadius: token.radiusBase, borderBottomStartRadius: token.radiusBase, borderStartEndRadius: 0, borderBottomEndRadius: 0, [`${componentCls}-panel-rtl &`]: { insetInlineEnd: hoverCellFixedDistance, borderInlineEnd: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderStartStartRadius: 0, borderBottomStartRadius: 0, borderStartEndRadius: token.radiusBase, borderBottomEndRadius: token.radiusBase, }, }, [`${componentCls}-cell-range-hover-end::after`]: { insetInlineEnd: hoverCellFixedDistance, borderInlineEnd: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderStartStartRadius: 0, borderBottomStartRadius: 0, borderStartEndRadius: token.radiusBase, borderBottomEndRadius: token.radiusBase, [`${componentCls}-panel-rtl &`]: { insetInlineStart: hoverCellFixedDistance, borderInlineStart: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderStartStartRadius: token.radiusBase, borderBottomStartRadius: token.radiusBase, borderStartEndRadius: 0, borderBottomEndRadius: 0, }, }, }, // ====================== Week Panel ====================== '&-week-panel': { [`${componentCls}-body`]: { padding: `${token.paddingXS}px ${token.paddingSM}px`, }, // Clear cell style [`${componentCls}-cell`]: { [`&:hover ${pickerCellInnerCls}, &-selected ${pickerCellInnerCls}, ${pickerCellInnerCls}`]: { background: 'transparent !important', }, }, '&-row': { td: { transition: `background ${token.motionDurationSlow}`, }, '&:hover td': { background: token.controlItemBgHover, }, [`&-selected td, &-selected:hover td`]: { background: token.colorPrimary, [`&${componentCls}-cell-week`]: { color: new TinyColor({ r: 255, g: 255, b: 255, a: 0.5 }).toRgbString(), // FIXME: fade(@text-color-inverse, 50%) }, [`&${componentCls}-cell-today ${pickerCellInnerCls}::before`]: { borderColor: '#fff', // FIXME: text color inverse }, [pickerCellInnerCls]: { color: '#fff', // FIXME: text color inverse }, }, }, }, // ====================== Date Panel ====================== '&-date-panel': { [`${componentCls}-body`]: { padding: `${token.paddingXS}px ${token.paddingSM}px`, }, [`${componentCls}-content`]: { width: token.pickerPanelCellWidth * 7, th: { width: token.pickerPanelCellWidth, }, }, }, // ==================== Datetime Panel ==================== '&-datetime-panel': { display: 'flex', [`${componentCls}-time-panel`]: { borderInlineStart: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorBorder}`, }, [`${componentCls}-date-panel, ${componentCls}-time-panel`]: { transition: `opacity ${token.motionDurationSlow}`, }, // Keyboard '&-active': { [`${componentCls}-date-panel, ${componentCls}-time-panel`]: { opacity: 0.3, '&-active': { opacity: 1, }, }, }, }, // ====================== Time Panel ====================== '&-time-panel': { width: 'auto', minWidth: 'auto', direction: 'ltr', [`${componentCls}-content`]: { display: 'flex', flex: 'auto', height: token.pickerTimePanelColumnHeight, }, '&-column': { flex: '1 0 auto', width: token.pickerTimePanelColumnWidth, margin: 0, padding: 0, overflowY: 'hidden', textAlign: 'start', listStyle: 'none', transition: `background ${token.motionDurationSlow}`, '&::after': { display: 'block', height: token.pickerTimePanelColumnHeight - token.pickerTimePanelCellHeight, content: '""', [`${componentCls}-datetime-panel &`]: { height: token.pickerTimePanelColumnHeight - token.pickerPanelWithoutTimeCellHeight + 2 * token.controlLineWidth, }, }, '&:not(:first-child)': { borderInlineStart: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorSplit}`, }, '&-active': { background: token.controlItemBgActive, // FIXME: fade(@calendar-item-active-bg, 20%) }, '&:hover': { overflowY: 'auto', }, '> li': { margin: 0, padding: 0, [`&${componentCls}-time-panel-cell`]: { [`${componentCls}-time-panel-cell-inner`]: { display: 'block', width: '100%', height: token.pickerTimePanelCellHeight, margin: 0, paddingBlock: 0, paddingInlineEnd: 0, paddingInlineStart: (token.pickerTimePanelColumnWidth - token.pickerTimePanelCellHeight) / 2, color: token.colorText, lineHeight: `${token.pickerTimePanelCellHeight}px`, borderRadius: 0, cursor: 'pointer', transition: `background ${token.motionDurationSlow}`, '&:hover': { background: token.controlItemBgHover, }, }, '&-selected': { [`${componentCls}-time-panel-cell-inner`]: { background: token.controlItemBgActive, }, }, '&-disabled': { [`${componentCls}-time-panel-cell-inner`]: { color: token.colorTextDisabled, background: 'transparent', cursor: 'not-allowed', }, }, }, }, }, }, }, }, }; }; const genPickerStatusStyle: GenerateStyle<PickerToken> = token => { const { componentCls } = token; return { [componentCls]: { '&-status-error&': { '&, &:not([disabled]):hover': { backgroundColor: token.colorBgComponent, borderColor: token.colorError, }, '&-focused, &:focus': { ...genActiveStyle( mergeToken<PickerToken>(token, { inputBorderActiveColor: token.colorError, inputBorderHoverColor: token.colorError, colorPrimaryOutline: token.colorErrorOutline, }), ), }, }, '&-status-warning&': { '&, &:not([disabled]):hover': { backgroundColor: token.colorBgComponent, borderColor: token.colorWarning, }, '&-focused, &:focus': { ...genActiveStyle( mergeToken<PickerToken>(token, { inputBorderActiveColor: token.colorWarning, inputBorderHoverColor: token.colorWarning, colorPrimaryOutline: token.colorWarningOutline, }), ), }, }, }, }; }; // ============================== Export ============================== export default genComponentStyleHook( 'DatePicker', (token, { hashId }) => { const pickerToken = mergeToken<PickerToken>(initInputToken<FullToken<'DatePicker'>>(token), { arrowWidth: 8 * Math.sqrt(2), pickerCellInnerCls: `${token.componentCls}-cell-inner`, hashId, }); return [ genPickerStyle(pickerToken), genPanelStyle(pickerToken), genPickerStatusStyle(pickerToken), ]; }, token => ({ zIndexDropdown: token.zIndexPopup + 50, pickerTextHeight: 40, pickerPanelCellWidth: 36, pickerPanelCellHeight: 24, pickerDateHoverRangeBorderColor: new TinyColor(token.colorPrimary).lighten(20).toRgbString(), pickerBasicCellHoverWithRangeColor: new TinyColor(token.colorPrimary).lighten(35).toRgbString(), pickerPanelWithoutTimeCellHeight: 66, pickerTimePanelColumnHeight: 224, pickerTimePanelColumnWidth: 56, pickerTimePanelCellHeight: 28, }), );
components/date-picker/style/index.tsx
1
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.9944071769714355, 0.5221513509750366, 0.00016404273628722876, 0.6425323486328125, 0.44298332929611206 ]
{ "id": 1, "code_window": [ " genPickerStyle(pickerToken),\n", " genPanelStyle(pickerToken),\n", " genPickerStatusStyle(pickerToken),\n", " ];\n", " },\n", " token => ({\n", " zIndexDropdown: token.zIndexPopup + 50,\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " slideDownIn,\n", " slideDownOut,\n", " slideUpIn,\n", " slideUpOut,\n" ], "file_path": "components/date-picker/style/index.tsx", "type": "add", "edit_start_line_idx": 1000 }
--- order: 10 title: useBreakpoint Hook --- ## zh-CN 使用 `useBreakpoint` Hook 个性化布局。 ## en-US Use `useBreakpoint` Hook provide personalized layout. ```jsx import { Grid, Tag } from 'antd'; const { useBreakpoint } = Grid; function UseBreakpointDemo() { const screens = useBreakpoint(); return ( <> Current break point:{' '} {Object.entries(screens) .filter(screen => !!screen[1]) .map(screen => ( <Tag color="blue" key={screen[0]}> {screen[0]} </Tag> ))} </> ); } export default () => <UseBreakpointDemo />; ```
components/grid/demo/useBreakpoint.md
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017333112191408873, 0.0001713849778752774, 0.0001689393975539133, 0.00017163468874059618, 0.0000017891942434289376 ]
{ "id": 1, "code_window": [ " genPickerStyle(pickerToken),\n", " genPanelStyle(pickerToken),\n", " genPickerStatusStyle(pickerToken),\n", " ];\n", " },\n", " token => ({\n", " zIndexDropdown: token.zIndexPopup + 50,\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " slideDownIn,\n", " slideDownOut,\n", " slideUpIn,\n", " slideUpOut,\n" ], "file_path": "components/date-picker/style/index.tsx", "type": "add", "edit_start_line_idx": 1000 }
--- order: 24 title: zh-CN: 自定义选择标签 en-US: Custom Tag Render --- ## zh-CN 允许自定义选择标签的样式。 ## en-US Allows for custom rendering of tags. ```jsx import { Select, Tag } from 'antd'; const options = [{ value: 'gold' }, { value: 'lime' }, { value: 'green' }, { value: 'cyan' }]; function tagRender(props) { const { label, value, closable, onClose } = props; const onPreventMouseDown = event => { event.preventDefault(); event.stopPropagation(); }; return ( <Tag color={value} onMouseDown={onPreventMouseDown} closable={closable} onClose={onClose} style={{ marginRight: 3 }} > {label} </Tag> ); } export default () => ( <Select mode="multiple" showArrow tagRender={tagRender} defaultValue={['gold', 'cyan']} style={{ width: '100%' }} options={options} /> ); ```
components/select/demo/custom-tag-render.md
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017423488316126168, 0.00017166930774692446, 0.0001700311986496672, 0.00017170977662317455, 0.000001396516950080695 ]
{ "id": 1, "code_window": [ " genPickerStyle(pickerToken),\n", " genPanelStyle(pickerToken),\n", " genPickerStatusStyle(pickerToken),\n", " ];\n", " },\n", " token => ({\n", " zIndexDropdown: token.zIndexPopup + 50,\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " slideDownIn,\n", " slideDownOut,\n", " slideUpIn,\n", " slideUpOut,\n" ], "file_path": "components/date-picker/style/index.tsx", "type": "add", "edit_start_line_idx": 1000 }
--- order: 1 title: zh-CN: 自动关闭的延时 en-US: Duration after which the notification box is closed --- ## zh-CN 自定义通知框自动关闭的延时,默认 `4.5s`,取消自动关闭只要将该值设为 `0` 即可。 ## en-US `Duration` can be used to specify how long the notification stays open. After the duration time elapses, the notification closes automatically. If not specified, default value is 4.5 seconds. If you set the value to 0, the notification box will never close automatically. ```jsx import { Button, notification } from 'antd'; const openNotification = () => { const args = { message: 'Notification Title', description: 'I will never close automatically. This is a purposely very very long description that has many many characters and words.', duration: 0, }; notification.open(args); }; export default () => ( <Button type="primary" onClick={openNotification}> Open the notification box </Button> ); ```
components/notification/demo/duration.md
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017112272325903177, 0.0001695889513939619, 0.00016791702364571393, 0.00016965802933555096, 0.0000011735747875718516 ]
{ "id": 2, "code_window": [ " textColorSecondary: string;\n", " motionEaseOut: string;\n", " componentCls: string;\n", "}\n", "\n", "const antdDrawerFadeIn = new Keyframes('antNoWrapperZoomBadgeIn', {\n", " '0%': { opacity: 0 },\n", " '100%': { opacity: 1 },\n", "});\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ "const antdDrawerFadeIn = new Keyframes('antDrawerFadeIn', {\n" ], "file_path": "components/drawer/style/index.tsx", "type": "replace", "edit_start_line_idx": 26 }
// deps-lint-skip-all import { CSSObject, Keyframes } from '@ant-design/cssinjs'; import { TinyColor } from '@ctrl/tinycolor'; import { FullToken, genComponentStyleHook, GenerateStyle, mergeToken } from '../../_util/theme'; export interface DrawerToken extends FullToken<'Drawer'> { drawerHeaderCloseSize: number; shadow1Right: string; shadow1Left: string; shadow1Up: string; shadow1Down: string; drawerTitleLineHeight: number; closeRight: number; white: string; black: string; paddingMd: number; modalFooterPaddingVertical: number; modalFooterPaddingHorizontal: number; hoverColor: string; borderColorSplit: string; borderStyle: string; textColorSecondary: string; motionEaseOut: string; componentCls: string; } const antdDrawerFadeIn = new Keyframes('antNoWrapperZoomBadgeIn', { '0%': { opacity: 0 }, '100%': { opacity: 1 }, }); // =============================== Base =============================== const genBaseStyle: GenerateStyle<DrawerToken> = ( token: DrawerToken, hashId: string, ): CSSObject => { const { componentCls, motionEaseOut, motionDurationSlow, fontSizeLG, drawerTitleLineHeight, white, closeRight, paddingLG, paddingMd, lineWidth, borderStyle, radiusBase, fontSize, lineHeight, modalFooterPaddingVertical, modalFooterPaddingHorizontal, borderColorSplit, zIndexPopup, colorText, textColorSecondary, hoverColor, } = token; return { [`${componentCls}`]: { // FIXME: Seems useless? // @drawer-header-close-padding: ceil(((drawerHeaderCloseSize - @font-size-lg) / 2)); position: 'fixed', zIndex: zIndexPopup, width: 0, height: '100%', transition: `width 0s ease ${motionDurationSlow}, height 0s ease ${motionDurationSlow}`, [`${componentCls}-content-wrapper`]: { position: 'absolute', width: '100%', height: '100%', transition: `transform ${motionDurationSlow} ${motionEaseOut},box-shadow ${motionDurationSlow} ${motionEaseOut}`, [`${componentCls}-content`]: { width: '100%', height: '100%', position: 'relative', zIndex: 1, overflow: 'auto', backgroundColor: white, backgroundClip: `padding-box`, border: 0, [`${componentCls}-wrapper-body`]: { display: 'flex', flexFlow: 'column nowrap', width: '100%', height: '100%', [`${componentCls}-header`]: { position: 'relative', display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: `${paddingMd}px ${paddingLG}px`, // FIXME px color: colorText, background: white, borderBottom: `${lineWidth}px ${borderStyle} ${borderColorSplit}`, // FIXME px borderRadius: `${radiusBase}px ${radiusBase}px 0 0`, // FIXME px [`${componentCls}-header-title`]: { display: 'flex', flex: 1, alignItems: 'center', justifyContent: 'space-between', [`${componentCls}-title`]: { flex: 1, margin: 0, color: colorText, fontWeight: 500, fontSize: fontSizeLG, lineHeight: drawerTitleLineHeight, }, [`${componentCls}-close`]: { display: 'inline-block', marginInlineEnd: closeRight, color: textColorSecondary, fontWeight: 700, fontSize: fontSizeLG, fontStyle: 'normal', lineHeight: 1, textAlign: 'center', textTransform: 'none', textDecoration: 'none', background: 'transparent', border: 0, outline: 0, cursor: 'pointer', transition: `color ${motionDurationSlow}`, textRendering: 'auto', [`${componentCls}:focus,${componentCls}:hover`]: { color: hoverColor, textDecoration: 'none', }, }, }, [`${componentCls}-header-close-only`]: { paddingBottom: 0, border: 'none', }, }, [`${componentCls}-body`]: { flexGrow: 1, padding: paddingLG, overflow: 'auto', fontSize, lineHeight, wordWrap: 'break-word', }, [`${componentCls}-footer`]: { flexShrink: 0, padding: `${modalFooterPaddingVertical}px ${modalFooterPaddingHorizontal}px`, // FIXME px borderTop: `${lineWidth}px ${borderStyle} ${borderColorSplit}`, // FIXME px }, }, }, }, [`${componentCls}-mask`]: { position: 'absolute', insetBlockStart: 0, insetInlineStart: 0, width: '100%', height: 0, backgroundColor: textColorSecondary, opacity: 0, transition: `opacity ${motionDurationSlow} linear, height 0s ease ${motionDurationSlow}`, pointerEvents: 'none', }, }, [`${componentCls}${componentCls}-open ${componentCls}-mask`]: { height: '100%', opacity: 1, transition: 'none', animation: `${antdDrawerFadeIn.getName(hashId)} ${motionDurationSlow} ${motionEaseOut}`, pointerEvents: 'auto', }, }; }; const genDrawerStyle: GenerateStyle<DrawerToken> = (token: DrawerToken) => { const { componentCls, motionDurationSlow, shadow1Right, shadow1Left, shadow1Down, shadow1Up, lineWidth, motionEaseOut, } = token; return { // =================== left,right =================== [`${componentCls}-left`]: { insetInlineStart: 0, insetBlockStart: 0, width: 0, height: '100%', [`${componentCls}-content-wrapper`]: { height: '100%', insetInlineStart: 0, }, }, [`${componentCls}-left${componentCls}-open`]: { width: '100%', transition: `transform ${motionDurationSlow} ${motionEaseOut}`, [`${componentCls}-content-wrapper`]: { boxShadow: shadow1Right, }, }, [`${componentCls}-right`]: { insetInlineEnd: 0, insetBlockStart: 0, width: 0, height: '100%', [`${componentCls}-content-wrapper`]: { height: '100%', insetInlineEnd: 0, }, }, [`${componentCls}-right${componentCls}-open`]: { width: '100%', transition: `transform ${motionDurationSlow} ${motionEaseOut}`, [`${componentCls}-content-wrapper`]: { boxShadow: shadow1Left, }, }, // https://github.com/ant-design/ant-design/issues/18607, Avoid edge alignment bug. [`${componentCls}-right${componentCls}-open.no-mask`]: { insetInlineEnd: lineWidth, transform: `translateX(${lineWidth})`, }, // =================== top,bottom =================== [`${componentCls}-top,${componentCls}-bottom`]: { insetInlineStart: 0, width: '100%', height: 0, [`${componentCls}-content-wrapper`]: { width: '100%', }, }, [`${componentCls}-top${componentCls}-open,${componentCls}-bottom${componentCls}-open`]: { height: '100%', transition: `transform ${motionDurationSlow} ${motionEaseOut}`, }, [`${componentCls}-top`]: { insetBlockStart: 0, }, [`${componentCls}-top${componentCls}-open`]: { [`${componentCls}-content-wrapper`]: { boxShadow: shadow1Down, }, }, [`${componentCls}-bottom`]: { bottom: 0, [`${componentCls}-content-wrapper`]: { bottom: 0, }, }, [`${componentCls}-bottom${componentCls}-bottom-open`]: { [`${componentCls}-content-wrapper`]: { boxShadow: shadow1Up, }, }, [`${componentCls}-bottom${componentCls}-bottom-open.no-mask`]: { insetBlockEnd: lineWidth, transform: `translateY(${lineWidth})`, }, // ==================== Hook Components =================== // FIXME: Seems useless? // .@{picker-prefix-cls} { // &-clear { // background: @popover-background, // } // } }; }; // ============================== Export ============================== export default genComponentStyleHook('Drawer', (token, { hashId }) => { const drawerToken = mergeToken<DrawerToken>(token, { black: '#000', // FIXME: hard code white: '#fff', // FIXME: hard code drawerHeaderCloseSize: 56, // FIXME: hard code shadow1Right: '6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05),12px 0 48px 16px rgba(0, 0, 0, 0.03)', // FIXME: hard code in v4 shadow1Left: '-6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03)', // FIXME: hard code in v4 shadow1Up: '0 -6px 16px -8px rgba(0, 0, 0, 0.32), 0 -9px 28px 0 rgba(0, 0, 0, 0.2),0 -12px 48px 16px rgba(0, 0, 0, 0.12)', // FIXME: hard code in v4 shadow1Down: '0 6px 16px -8px rgba(0, 0, 0, 0.32), 0 9px 28px 0 rgba(0, 0, 0, 0.2), 0 12px 48px 16px rgba(0, 0, 0, 0.12)', // FIXME: hard code in v4 drawerTitleLineHeight: 1.375, // FIXME: hard code closeRight: 22, // FIXME: hard code paddingMd: 16, // FIXME: hard code modalFooterPaddingVertical: 10, // FIXME: hard code modalFooterPaddingHorizontal: 16, // FIXME: hard code borderColorSplit: new TinyColor({ h: 0, s: 0, v: 94 }).toHexString(), // FIXME: hard code hoverColor: new TinyColor('#000').setAlpha(0.75).toRgbString(), // FIXME: hard code textColorSecondary: new TinyColor('#000').setAlpha(0.45).toRgbString(), // FIXME: hard code borderStyle: 'solid', // FIXME: hard code motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)', // FIXME: hard code }); return [genBaseStyle(drawerToken, hashId), genDrawerStyle(drawerToken)]; });
components/drawer/style/index.tsx
1
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.999312162399292, 0.21321728825569153, 0.00016930740093812346, 0.00037979715852998197, 0.3715011775493622 ]
{ "id": 2, "code_window": [ " textColorSecondary: string;\n", " motionEaseOut: string;\n", " componentCls: string;\n", "}\n", "\n", "const antdDrawerFadeIn = new Keyframes('antNoWrapperZoomBadgeIn', {\n", " '0%': { opacity: 0 },\n", " '100%': { opacity: 1 },\n", "});\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ "const antdDrawerFadeIn = new Keyframes('antDrawerFadeIn', {\n" ], "file_path": "components/drawer/style/index.tsx", "type": "replace", "edit_start_line_idx": 26 }
import locale from '../locale/hu_HU'; export default locale;
components/locale-provider/hu_HU.tsx
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017752021085470915, 0.00017752021085470915, 0.00017752021085470915, 0.00017752021085470915, 0 ]
{ "id": 2, "code_window": [ " textColorSecondary: string;\n", " motionEaseOut: string;\n", " componentCls: string;\n", "}\n", "\n", "const antdDrawerFadeIn = new Keyframes('antNoWrapperZoomBadgeIn', {\n", " '0%': { opacity: 0 },\n", " '100%': { opacity: 1 },\n", "});\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ "const antdDrawerFadeIn = new Keyframes('antDrawerFadeIn', {\n" ], "file_path": "components/drawer/style/index.tsx", "type": "replace", "edit_start_line_idx": 26 }
--- order: 1 title: zh-CN: 受控组件 en-US: Under Control --- ## zh-CN value 和 onChange 需要配合使用。 ## en-US `value` and `onChange` should be used together, ```jsx import React, { useState } from 'react'; import { TimePicker } from 'antd'; const Demo = () => { const [value, setValue] = useState(null); const onChange = time => { setValue(time); }; return <TimePicker value={value} onChange={onChange} />; }; export default Demo; ```
components/time-picker/demo/value.md
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.0001797107106540352, 0.0001745824993122369, 0.00016839502495713532, 0.000175112159922719, 0.000004078101937921019 ]
{ "id": 2, "code_window": [ " textColorSecondary: string;\n", " motionEaseOut: string;\n", " componentCls: string;\n", "}\n", "\n", "const antdDrawerFadeIn = new Keyframes('antNoWrapperZoomBadgeIn', {\n", " '0%': { opacity: 0 },\n", " '100%': { opacity: 1 },\n", "});\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ "const antdDrawerFadeIn = new Keyframes('antDrawerFadeIn', {\n" ], "file_path": "components/drawer/style/index.tsx", "type": "replace", "edit_start_line_idx": 26 }
import * as React from 'react'; import { ModalFuncProps } from '../Modal'; import usePatchElement from '../../_util/hooks/usePatchElement'; import HookModal, { HookModalRef } from './HookModal'; import { withConfirm, ModalStaticFunctions, withInfo, withSuccess, withError, withWarn, } from '../confirm'; let uuid = 0; interface ElementsHolderRef { patchElement: ReturnType<typeof usePatchElement>[1]; } const ElementsHolder = React.memo( React.forwardRef<ElementsHolderRef>((_props, ref) => { const [elements, patchElement] = usePatchElement(); React.useImperativeHandle( ref, () => ({ patchElement, }), [], ); // eslint-disable-next-line react/jsx-no-useless-fragment return <>{elements}</>; }), ); export default function useModal(): [Omit<ModalStaticFunctions, 'warn'>, React.ReactElement] { const holderRef = React.useRef<ElementsHolderRef>(null as any); // ========================== Effect ========================== const [actionQueue, setActionQueue] = React.useState<(() => void)[]>([]); React.useEffect(() => { if (actionQueue.length) { const cloneQueue = [...actionQueue]; cloneQueue.forEach(action => { action(); }); setActionQueue([]); } }, [actionQueue]); // =========================== Hook =========================== const getConfirmFunc = React.useCallback( (withFunc: (config: ModalFuncProps) => ModalFuncProps) => function hookConfirm(config: ModalFuncProps) { uuid += 1; const modalRef = React.createRef<HookModalRef>(); let closeFunc: Function; const modal = ( <HookModal key={`modal-${uuid}`} config={withFunc(config)} ref={modalRef} afterClose={() => { closeFunc(); }} /> ); closeFunc = holderRef.current?.patchElement(modal); return { destroy: () => { function destroyAction() { modalRef.current?.destroy(); } if (modalRef.current) { destroyAction(); } else { setActionQueue(prev => [...prev, destroyAction]); } }, update: (newConfig: ModalFuncProps) => { function updateAction() { modalRef.current?.update(newConfig); } if (modalRef.current) { updateAction(); } else { setActionQueue(prev => [...prev, updateAction]); } }, }; }, [], ); const fns = React.useMemo( () => ({ info: getConfirmFunc(withInfo), success: getConfirmFunc(withSuccess), error: getConfirmFunc(withError), warning: getConfirmFunc(withWarn), confirm: getConfirmFunc(withConfirm), }), [], ); // eslint-disable-next-line react/jsx-key return [fns, <ElementsHolder ref={holderRef} />]; }
components/modal/useModal/index.tsx
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017633676179684699, 0.00017198262503370643, 0.00016578013310208917, 0.00017168701742775738, 0.000002960288156828028 ]
{ "id": 3, "code_window": [ " motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)', // FIXME: hard code\n", " });\n", "\n", " return [genBaseStyle(drawerToken, hashId), genDrawerStyle(drawerToken)];\n", "});" ], "labels": [ "keep", "keep", "keep", "replace", "keep" ], "after_edit": [ " return [genBaseStyle(drawerToken, hashId), genDrawerStyle(drawerToken), antdDrawerFadeIn];\n" ], "file_path": "components/drawer/style/index.tsx", "type": "replace", "edit_start_line_idx": 312 }
// import '../../style/index.less'; // import './index.less'; // deps-lint-skip-all import { CSSObject, CSSInterpolation, Keyframes } from '@ant-design/cssinjs'; import { DerivativeToken, resetComponent, genComponentStyleHook, mergeToken, } from '../../_util/theme'; import { getStyle as getCheckboxStyle } from '../../checkbox/style'; // ============================ Keyframes ============================= const treeNodeFX = new Keyframes('ant-tree-node-fx-do-not-use', { '0%': { opacity: 0, }, '100%': { opacity: 1, }, }); // ============================== Switch ============================== const getSwitchStyle = (prefixCls: string, token: DerivativeToken): CSSObject => ({ [`.${prefixCls}-switcher-icon`]: { display: 'inline-block', fontSize: 10, verticalAlign: 'baseline', svg: { transition: `transform ${token.motionDurationSlow}`, }, }, }); // =============================== Drop =============================== const getDropIndicatorStyle = (prefixCls: string, token: DerivativeToken) => ({ [`.${prefixCls}-drop-indicator`]: { position: 'absolute', // it should displayed over the following node zIndex: 1, height: 2, backgroundColor: token.colorPrimary, borderRadius: 1, pointerEvents: 'none', '&:after': { position: 'absolute', top: -3, insetInlineStart: -6, width: 8, height: 8, backgroundColor: 'transparent', border: `2px solid ${token.colorPrimary}`, borderRadius: '50%', content: '""', }, }, }); // =============================== Base =============================== type TreeToken = DerivativeToken & { treeCls: string; treeNodeCls: string; treeNodePadding: number; treeTitleHeight: number; }; export const genBaseStyle = (prefixCls: string, token: TreeToken, hashId: string): CSSObject => { const { treeCls, treeNodeCls, treeNodePadding, treeTitleHeight } = token; const treeCheckBoxMarginVertical = (treeTitleHeight - token.fontSizeLG) / 2; const treeCheckBoxMarginHorizontal = token.paddingXS; return { [treeCls]: { ...resetComponent(token), background: token.colorBgComponent, borderRadius: token.controlRadius, transition: `background-color ${token.motionDurationSlow}`, '&&-rtl': { // >>> Switcher [`${treeCls}-switcher`]: { '&_close': { [`${treeCls}-switcher-icon`]: { svg: { transform: 'rotate(90deg)', }, }, }, }, }, '&-focused:not(:hover):not(&-active-focused)': { background: token.colorPrimaryOutline, }, // =================== Virtual List =================== [`${treeCls}-list-holder-inner`]: { alignItems: 'flex-start', }, [`&${treeCls}-block-node`]: { [`${treeCls}-list-holder-inner`]: { alignItems: 'stretch', // >>> Title [`${treeCls}-node-content-wrapper`]: { flex: 'auto', }, // >>> Drag [`${treeNodeCls}.dragging`]: { position: 'relative', '&:after': { position: 'absolute', top: 0, insetInlineEnd: 0, bottom: treeNodePadding, insetInlineStart: 0, border: `1px solid ${token.colorPrimary}`, opacity: 0, animation: `${treeNodeFX.getName(hashId)} ${token.motionDurationSlow}`, animationPlayState: 'running', animationFillMode: 'forwards', content: '""', pointerEvents: 'none', }, }, }, }, // ===================== TreeNode ===================== [`${treeNodeCls}`]: { display: 'flex', alignItems: 'flex-start', padding: `0 0 ${treeNodePadding}px 0`, outline: 'none', '&-rtl': { direction: 'rtl', }, // Disabled '&-disabled': { // >>> Title [`${treeCls}-node-content-wrapper`]: { color: token.colorTextDisabled, cursor: 'not-allowed', '&:hover': { background: 'transparent', }, }, }, [`&-active ${treeCls}-node-content-wrapper`]: { background: token.controlItemBgHover, }, [`&:not(&-disabled).filter-node ${treeCls}-title`]: { color: 'inherit', fontWeight: 500, }, }, // >>> Indent [`${treeCls}-indent`]: { alignSelf: 'stretch', whiteSpace: 'nowrap', userSelect: 'none', '&-unit': { display: 'inline-block', width: treeTitleHeight, }, }, // >>> Drag Handler [`${treeCls}-draggable-icon`]: { width: treeTitleHeight, lineHeight: `${treeTitleHeight}px`, textAlign: 'center', opacity: 0.2, transition: `opacity ${token.motionDurationSlow}`, [`${treeNodeCls}:hover &`]: { opacity: 0.45, }, }, // >>> Switcher [`${treeCls}-switcher`]: { ...getSwitchStyle(prefixCls, token), position: 'relative', flex: 'none', alignSelf: 'stretch', width: treeTitleHeight, margin: 0, lineHeight: `${treeTitleHeight}px`, textAlign: 'center', cursor: 'pointer', userSelect: 'none', '&-noop': { cursor: 'default', }, '&_close': { [`${treeCls}-switcher-icon`]: { svg: { transform: 'rotate(-90deg)', }, }, }, '&-loading-icon': { color: token.colorPrimary, }, '&-leaf-line': { position: 'relative', zIndex: 1, display: 'inline-block', width: '100%', height: '100%', // https://github.com/ant-design/ant-design/issues/31884 '&:before': { position: 'absolute', top: 0, insetInlineEnd: treeTitleHeight / 2, bottom: -treeNodePadding, marginInlineStart: -1, borderInlineEnd: `1px solid ${token.colorBorder}`, content: '""', }, '&:after': { position: 'absolute', width: (treeTitleHeight / 2) * 0.8, height: treeTitleHeight / 2, borderBottom: `1px solid ${token.colorBorder}`, content: '""', }, }, }, // >>> Checkbox [`${treeCls}-checkbox`]: { top: 'initial', marginInlineEnd: treeCheckBoxMarginHorizontal, marginBlockStart: treeCheckBoxMarginVertical, }, // >>> Title [`& ${treeCls}-node-content-wrapper`]: { display: 'flex', flexWrap: 'nowrap', position: 'relative', zIndex: 'auto', minHeight: treeTitleHeight, margin: 0, padding: `0 ${token.paddingXS / 2}px`, color: 'inherit', lineHeight: `${treeTitleHeight}px`, background: 'transparent', borderRadius: token.controlRadius, cursor: 'pointer', transition: `all ${token.motionDurationSlow}, border 0s, line-height 0s, box-shadow 0s`, '&:hover': { backgroundColor: token.controlItemBgHover, }, [`&${treeCls}-node-selected`]: { backgroundColor: token.colorPrimaryOutline, }, // Icon [`${treeCls}-iconEle`]: { display: 'inline-block', width: treeTitleHeight, height: treeTitleHeight, lineHeight: `${treeTitleHeight}px`, textAlign: 'center', verticalAlign: 'top', '&:empty': { display: 'none', }, }, }, // https://github.com/ant-design/ant-design/issues/28217 [`${treeCls}-unselectable ${treeCls}-node-content-wrapper:hover`]: { backgroundColor: 'transparent', }, // ==================== Draggable ===================== [`${treeCls}-node-content-wrapper`]: { lineHeight: `${treeTitleHeight}px`, userSelect: 'none', ...getDropIndicatorStyle(prefixCls, token), }, [`${treeNodeCls}.drop-container`]: { '> [draggable]': { boxShadow: `0 0 0 2px ${token.colorPrimary}`, }, }, // ==================== Show Line ===================== '&-show-line': { // ================ Indent lines ================ [`${treeCls}-indent`]: { '&-unit': { position: 'relative', height: '100%', '&:before': { position: 'absolute', top: 0, insetInlineEnd: treeTitleHeight / 2, bottom: -treeNodePadding, borderInlineEnd: `1px solid ${token.colorBorder}`, content: '""', }, '&-end': { '&:before': { display: 'none', }, }, }, }, // ============== Cover Background ============== [`${treeCls}-switcher`]: { background: token.colorBgComponent, '&-line-icon': { // https://github.com/ant-design/ant-design/issues/32813 verticalAlign: '-0.15em', }, }, }, [`${treeNodeCls}-leaf-last`]: { [`${treeCls}-switcher`]: { '&-leaf-line': { '&:before': { top: 'auto !important', bottom: 'auto !important', height: `${treeTitleHeight / 2}px !important`, }, }, }, }, }, }; }; // ============================ Directory ============================= export const genDirectoryStyle = (token: TreeToken): CSSObject => { const { treeCls, treeNodeCls, treeNodePadding } = token; return { [`${treeCls}${treeCls}-directory`]: { // ================== TreeNode ================== [treeNodeCls]: { position: 'relative', // Hover color '&:before': { position: 'absolute', top: 0, insetInlineEnd: 0, bottom: treeNodePadding, insetInlineStart: 0, transition: `background-color ${token.motionDurationSlow}`, content: '""', pointerEvents: 'none', }, '&:hover': { '&:before': { background: token.controlItemBgHover, }, }, // Elements '> *': { zIndex: 1, }, // >>> Switcher [`${treeCls}-switcher`]: { transition: `color ${token.motionDurationSlow}`, }, // >>> Title [`${treeCls}-node-content-wrapper`]: { borderRadius: 0, userSelect: 'none', '&:hover': { background: 'transparent', }, [`&.${treeCls}-node-selected`]: { color: token.colorTextLightSolid, background: 'transparent', }, }, // ============= Selected ============= '&-selected': { [` &:hover::before, &::before `]: { background: token.colorPrimary, }, // >>> Switcher [`${treeCls}-switcher`]: { color: token.colorTextLightSolid, }, // >>> Title [`${treeCls}-node-content-wrapper`]: { color: token.colorTextLightSolid, background: 'transparent', }, }, }, }, }; }; // ============================== Merged ============================== export const genTreeStyle = ( prefixCls: string, token: DerivativeToken, hashId: string, ): CSSInterpolation => { const treeCls = `.${prefixCls}`; const treeNodeCls = `${treeCls}-treenode`; const treeNodePadding = token.paddingXS / 2; const treeTitleHeight = token.controlHeightSM; const treeToken = mergeToken<TreeToken>(token, { treeCls, treeNodeCls, treeNodePadding, treeTitleHeight, }); return [ // Basic genBaseStyle(prefixCls, treeToken, hashId), // Directory genDirectoryStyle(treeToken), ]; }; // ============================== Export ============================== export default genComponentStyleHook('Tree', (token, { prefixCls, hashId }) => [ getCheckboxStyle(`${prefixCls}-checkbox`, token, hashId), genTreeStyle(prefixCls, token, hashId), treeNodeFX, ]);
components/tree/style/index.tsx
1
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.006255628075450659, 0.0003262758255004883, 0.0001650926860747859, 0.00017382684745825827, 0.0008770455606281757 ]
{ "id": 3, "code_window": [ " motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)', // FIXME: hard code\n", " });\n", "\n", " return [genBaseStyle(drawerToken, hashId), genDrawerStyle(drawerToken)];\n", "});" ], "labels": [ "keep", "keep", "keep", "replace", "keep" ], "after_edit": [ " return [genBaseStyle(drawerToken, hashId), genDrawerStyle(drawerToken), antdDrawerFadeIn];\n" ], "file_path": "components/drawer/style/index.tsx", "type": "replace", "edit_start_line_idx": 312 }
import React from 'react'; import { mount, render } from 'enzyme'; import debounce from 'lodash/debounce'; import Tree from '../index'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; const { DirectoryTree, TreeNode } = Tree; jest.mock('lodash/debounce'); describe('Directory Tree', () => { mountTest(Tree); mountTest(DirectoryTree); rtlTest(Tree); rtlTest(DirectoryTree); debounce.mockImplementation(fn => fn); beforeAll(() => { jest.useFakeTimers(); }); afterAll(() => { jest.useRealTimers(); debounce.mockRestore(); }); function createTree(props) { return ( <DirectoryTree {...props}> <TreeNode key="0-0"> <TreeNode key="0-0-0" /> <TreeNode key="0-0-1" /> </TreeNode> <TreeNode key="0-1"> <TreeNode key="0-1-0" /> <TreeNode key="0-1-1" /> </TreeNode> </DirectoryTree> ); } describe('expand', () => { it('click', () => { const wrapper = mount(createTree()); wrapper.find(TreeNode).find('.ant-tree-node-content-wrapper').at(0).simulate('click'); expect(wrapper.render()).toMatchSnapshot(); jest.runAllTimers(); wrapper.find(TreeNode).find('.ant-tree-node-content-wrapper').at(0).simulate('click'); expect(wrapper.render()).toMatchSnapshot(); }); it('double click', () => { const wrapper = mount(createTree({ expandAction: 'doubleClick' })); wrapper.find(TreeNode).find('.ant-tree-node-content-wrapper').at(0).simulate('doubleClick'); expect(wrapper.render()).toMatchSnapshot(); jest.runAllTimers(); wrapper.find(TreeNode).find('.ant-tree-node-content-wrapper').at(0).simulate('doubleClick'); expect(wrapper.render()).toMatchSnapshot(); }); describe('with state control', () => { class StateDirTree extends React.Component { state = { expandedKeys: [], }; onExpand = expandedKeys => { this.setState({ expandedKeys }); }; render() { const { expandedKeys } = this.state; return ( <DirectoryTree expandedKeys={expandedKeys} onExpand={this.onExpand} {...this.props}> <TreeNode key="0-0" title="parent"> <TreeNode key="0-0-0" title="children" /> </TreeNode> </DirectoryTree> ); } } ['click', 'doubleClick'].forEach(action => { it(action, () => { const wrapper = mount(<StateDirTree expandAction={action} />); wrapper.find(TreeNode).find('.ant-tree-node-content-wrapper').at(0).simulate(action); jest.runAllTimers(); expect(wrapper.render()).toMatchSnapshot(); }); }); }); }); it('defaultExpandAll', () => { const wrapper = render(createTree({ defaultExpandAll: true })); expect(wrapper).toMatchSnapshot(); }); it('DirectoryTree should expend all when use treeData and defaultExpandAll is true', () => { const treeData = [ { key: '0-0-0', title: 'Folder', children: [ { title: 'Folder2', key: '0-0-1', children: [ { title: 'File', key: '0-0-2', isLeaf: true, }, ], }, ], }, ]; const wrapper = render(createTree({ defaultExpandAll: true, treeData })); expect(wrapper).toMatchSnapshot(); }); it('defaultExpandParent', () => { const wrapper = render(createTree({ defaultExpandParent: true })); expect(wrapper).toMatchSnapshot(); }); it('expandedKeys update', () => { const wrapper = mount(createTree()); wrapper.setProps({ expandedKeys: ['0-1'] }); expect(wrapper.render()).toMatchSnapshot(); }); it('selectedKeys update', () => { const wrapper = mount(createTree({ defaultExpandAll: true })); wrapper.setProps({ selectedKeys: ['0-1-0'] }); expect(wrapper.render()).toMatchSnapshot(); }); it('group select', () => { let nativeEventProto = null; const onSelect = jest.fn(); const wrapper = mount( createTree({ defaultExpandAll: true, expandAction: 'doubleClick', multiple: true, onClick: e => { nativeEventProto = Object.getPrototypeOf(e.nativeEvent); }, onSelect, }), ); wrapper.find(TreeNode).find('.ant-tree-node-content-wrapper').at(0).simulate('click'); expect(onSelect.mock.calls[0][1].selected).toBeTruthy(); expect(onSelect.mock.calls[0][1].selectedNodes.length).toBe(1); // Click twice should keep selected wrapper.find(TreeNode).find('.ant-tree-node-content-wrapper').at(0).simulate('click'); expect(onSelect.mock.calls[1][1].selected).toBeTruthy(); expect(onSelect.mock.calls[0][0]).toEqual(onSelect.mock.calls[1][0]); expect(onSelect.mock.calls[1][1].selectedNodes.length).toBe(1); // React not simulate full of NativeEvent. Hook it. // Ref: https://github.com/facebook/react/blob/master/packages/react-dom/src/test-utils/ReactTestUtils.js#L360 nativeEventProto.ctrlKey = true; wrapper.find(TreeNode).find('.ant-tree-node-content-wrapper').at(1).simulate('click'); expect(wrapper.render()).toMatchSnapshot(); expect(onSelect.mock.calls[2][0].length).toBe(2); expect(onSelect.mock.calls[2][1].selected).toBeTruthy(); expect(onSelect.mock.calls[2][1].selectedNodes.length).toBe(2); delete nativeEventProto.ctrlKey; nativeEventProto.shiftKey = true; wrapper.find(TreeNode).find('.ant-tree-node-content-wrapper').at(4).simulate('click'); expect(wrapper.render()).toMatchSnapshot(); expect(onSelect.mock.calls[3][0].length).toBe(5); expect(onSelect.mock.calls[3][1].selected).toBeTruthy(); expect(onSelect.mock.calls[3][1].selectedNodes.length).toBe(5); delete nativeEventProto.shiftKey; }); it('onDoubleClick', () => { const onDoubleClick = jest.fn(); const wrapper = mount(createTree({ onDoubleClick })); wrapper.find(TreeNode).find('.ant-tree-node-content-wrapper').at(0).simulate('doubleclick'); expect(onDoubleClick).toBeCalled(); }); it('should not expand tree now when pressing ctrl', () => { const onExpand = jest.fn(); const onSelect = jest.fn(); const wrapper = mount(createTree({ onExpand, onSelect })); wrapper .find(TreeNode) .find('.ant-tree-node-content-wrapper') .at(0) .simulate('click', { ctrlKey: true }); expect(onExpand).not.toHaveBeenCalled(); expect(onSelect).toHaveBeenCalledWith( ['0-0'], expect.objectContaining({ event: 'select', nativeEvent: expect.anything() }), ); }); it('should not expand tree now when click leaf node', () => { const onExpand = jest.fn(); const onSelect = jest.fn(); const wrapper = mount( createTree({ onExpand, onSelect, defaultExpandAll: true, treeData: [ { key: '0-0-0', title: 'Folder', children: [ { title: 'Folder2', key: '0-0-1', children: [ { title: 'File', key: '0-0-2', isLeaf: true, }, ], }, ], }, ], }), ); wrapper.find(TreeNode).last().find('.ant-tree-node-content-wrapper').at(0).simulate('click'); expect(onExpand).not.toHaveBeenCalled(); expect(onSelect).toHaveBeenCalledWith( ['0-0-2'], expect.objectContaining({ event: 'select', nativeEvent: expect.anything() }), ); }); it('ref support', () => { const treeRef = React.createRef(); mount(createTree({ ref: treeRef })); expect('scrollTo' in treeRef.current).toBeTruthy(); }); });
components/tree/__tests__/directory.test.js
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00018009461928158998, 0.00017503114941064268, 0.00016812547983136028, 0.0001756665005814284, 0.0000027304724881105358 ]
{ "id": 3, "code_window": [ " motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)', // FIXME: hard code\n", " });\n", "\n", " return [genBaseStyle(drawerToken, hashId), genDrawerStyle(drawerToken)];\n", "});" ], "labels": [ "keep", "keep", "keep", "replace", "keep" ], "after_edit": [ " return [genBaseStyle(drawerToken, hashId), genDrawerStyle(drawerToken), antdDrawerFadeIn];\n" ], "file_path": "components/drawer/style/index.tsx", "type": "replace", "edit_start_line_idx": 312 }
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('transfer');
components/transfer/__tests__/demo-extend.test.ts
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017931581533048302, 0.00017931581533048302, 0.00017931581533048302, 0.00017931581533048302, 0 ]
{ "id": 3, "code_window": [ " motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)', // FIXME: hard code\n", " });\n", "\n", " return [genBaseStyle(drawerToken, hashId), genDrawerStyle(drawerToken)];\n", "});" ], "labels": [ "keep", "keep", "keep", "replace", "keep" ], "after_edit": [ " return [genBaseStyle(drawerToken, hashId), genDrawerStyle(drawerToken), antdDrawerFadeIn];\n" ], "file_path": "components/drawer/style/index.tsx", "type": "replace", "edit_start_line_idx": 312 }
import React from 'react'; import { act } from 'react-dom/test-utils'; import { render, fireEvent } from '@testing-library/react'; import Form from '..'; import Input from '../../input'; import Button from '../../button'; import { sleep } from '../../../tests/utils'; describe('Form.List', () => { async function change(wrapper, index, value) { fireEvent.change(wrapper.getElementsByClassName('ant-input')[index], { target: { value } }); await sleep(); } function testList(name, renderField) { it(name, async () => { jest.useFakeTimers(); const { container } = render( <Form> <Form.List name="list"> {(fields, { add, remove }) => ( <> {fields.map(field => renderField(field))} <Button className="add" onClick={add}> Add </Button> <Button className="remove-0" onClick={() => { remove(0); }} /> <Button className="remove-1" onClick={() => { remove(1); }} /> </> )} </Form.List> </Form>, ); function operate(className) { act(() => { fireEvent.click(container.querySelector(className)); jest.runAllTimers(); }); } operate('.add'); expect(container.getElementsByClassName('ant-input').length).toBe(1); operate('.add'); expect(container.getElementsByClassName('ant-input').length).toBe(2); operate('.add'); expect(container.getElementsByClassName('ant-input').length).toBe(3); await change(container, 2, ''); for (let i = 0; i < 10; i += 1) { act(() => { jest.runAllTimers(); }); } expect(container.getElementsByClassName('ant-form-item-explain').length).toBe(1); operate('.remove-0'); expect(container.getElementsByClassName('ant-input').length).toBe(2); expect(container.getElementsByClassName('ant-form-item-explain').length).toBe(1); operate('.remove-1'); expect(container.getElementsByClassName('ant-input').length).toBe(1); expect(container.getElementsByClassName('ant-form-item-explain').length).toBe(0); jest.useRealTimers(); }); } testList('operation correctly', field => ( <Form.Item {...field} rules={[{ required: true }]}> <Input /> </Form.Item> )); testList('nest noStyle', field => ( <Form.Item key={field.key}> <Form.Item noStyle {...field} rules={[{ required: true }]}> <Input /> </Form.Item> </Form.Item> )); it('correct onFinish values', async () => { async function click(wrapper, className) { fireEvent.click(wrapper.querySelector(className)); } const onFinish = jest.fn().mockImplementation(() => {}); const { container } = render( <Form onFinish={v => { if (typeof v.list[0] === 'object') { /* old version led to SyntheticEvent be passed as an value here that led to weird infinite loop somewhere and OutOfMemory crash */ v = new Error('We expect value to be a primitive here'); } onFinish(v); }} > <Form.List name="list"> {(fields, { add, remove }) => ( <> {fields.map(field => ( // key is in a field // eslint-disable-next-line react/jsx-key <Form.Item {...field}> <Input /> </Form.Item> ))} <Button className="add" onClick={add}> Add </Button> <Button className="remove" onClick={() => remove(0)}> Remove </Button> </> )} </Form.List> </Form>, ); await click(container, '.add'); await change(container, 0, 'input1'); fireEvent.submit(container.querySelector('form')); await sleep(); expect(onFinish).toHaveBeenLastCalledWith({ list: ['input1'] }); await click(container, '.add'); await change(container, 1, 'input2'); await click(container, '.add'); await change(container, 2, 'input3'); fireEvent.submit(container.querySelector('form')); await sleep(); expect(onFinish).toHaveBeenLastCalledWith({ list: ['input1', 'input2', 'input3'] }); await click(container, '.remove'); // will remove first input fireEvent.submit(container.querySelector('form')); await sleep(); expect(onFinish).toHaveBeenLastCalledWith({ list: ['input2', 'input3'] }); }); it('list errors', async () => { jest.useFakeTimers(); let operation; const { container } = render( <Form> <Form.List name="list" rules={[ { validator: async (_, value) => { if (value.length < 2) { return Promise.reject(new Error('At least 2')); } }, }, ]} > {(_, opt, { errors }) => { operation = opt; return <Form.ErrorList errors={errors} />; }} </Form.List> </Form>, ); async function addItem() { await act(async () => { operation.add(); await sleep(100); jest.runAllTimers(); }); } await addItem(); expect(container.querySelector('.ant-form-item-explain div').innerHTML).toEqual('At least 2'); await addItem(); expect(container.getElementsByClassName('ant-form-item-explain div')).toHaveLength(0); jest.useRealTimers(); }); it('should render empty without errors', () => { const { container } = render(<Form.ErrorList />); expect(container.firstChild).toMatchSnapshot(); }); it('no warning when reset in validate', async () => { const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); const Demo = () => { const [form] = Form.useForm(); React.useEffect(() => { form.setFieldsValue({ list: [1], }); }, []); return ( <Form form={form}> <Form.List name="list"> {fields => fields.map(field => ( <Form.Item key={field.key} {...field}> <Input /> </Form.Item> )) } </Form.List> <button id="validate" type="button" onClick={() => { form.validateFields().then(() => { form.resetFields(); }); }} > Validate </button> </Form> ); }; const { container } = render(<Demo />); fireEvent.click(container.querySelector('button')); await sleep(); expect(errorSpy).not.toHaveBeenCalled(); errorSpy.mockRestore(); }); });
components/form/__tests__/list.test.js
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017999093688558787, 0.00017528049647808075, 0.00016898209287319332, 0.00017570385534781963, 0.0000026417603748996044 ]
{ "id": 4, "code_window": [ " // Basic\n", " genBaseStyle(prefixCls, treeToken, hashId),\n", " // Directory\n", " genDirectoryStyle(treeToken),\n", " ];\n", "};\n", "\n", "// ============================== Export ==============================\n" ], "labels": [ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " treeNodeFX,\n" ], "file_path": "components/tree/style/index.tsx", "type": "add", "edit_start_line_idx": 467 }
{ "name": "antd", "version": "4.20.0-alpha.0", "description": "An enterprise-class UI design language and React components implementation", "title": "Ant Design", "keywords": [ "ant", "component", "components", "design", "framework", "frontend", "react", "react-component", "ui" ], "homepage": "https://ant.design", "bugs": { "url": "https://github.com/ant-design/ant-design/issues" }, "repository": { "type": "git", "url": "https://github.com/ant-design/ant-design" }, "license": "MIT", "contributors": [ "ant" ], "funding": { "type": "opencollective", "url": "https://opencollective.com/ant-design" }, "files": [ "dist", "lib", "es" ], "sideEffects": [ "dist/*", "es/**/style/*", "lib/**/style/*", "*.less" ], "main": "lib/index.js", "module": "es/index.js", "unpkg": "dist/antd.min.js", "typings": "lib/index.d.ts", "scripts": { "prepare": "husky install", "api-collection": "antd-tools run api-collection", "authors": "node ./scripts/generate-authors", "build": "npm run compile && NODE_OPTIONS='--max-old-space-size=4096' npm run dist", "bundlesize": "bundlesize", "check-commit": "node ./scripts/check-commit", "check-ts-demo": "node ./scripts/check-ts-demo", "clean": "antd-tools run clean && rm -rf es lib coverage dist report.html", "clean-lockfiles": "rm -rf package-lock.json yarn.lock", "prestart": "npm run version", "precompile": "npm run version", "pretest": "npm run version", "predist": "npm run version", "presite": "npm run version", "compile": "npm run clean && antd-tools run compile", "changelog": "node ./scripts/print-changelog", "predeploy": "antd-tools run clean && npm run site && cp CNAME _site && npm run site:test", "deploy": "bisheng gh-pages --push-only --dotfiles", "deploy:china-mirror": "git checkout gh-pages && git pull origin gh-pages && git push [email protected]:ant-design/ant-design.git gh-pages", "dist": "antd-tools run dist", "dist:esbuild": "ESBUILD=true npm run dist", "dist:esbuild-no-dup-check": "ESBUILD=true NO_DUP_CHECK=true npm run dist", "lint": "npm run tsc && npm run lint:script && npm run lint:demo && npm run lint:style && npm run lint:deps && npm run lint:md", "lint-fix": "npm run lint-fix:script && npm run lint-fix:demo && npm run lint-fix:style", "lint-fix:demo": "npm run lint:demo -- --fix", "lint-fix:script": "npm run lint:script -- --fix", "lint-fix:style": "npm run lint:style -- --fix", "lint:demo": "eslint components/*/demo/*.md", "lint:deps": "antd-tools run deps-lint", "lint:md": "remark . -f -q", "lint:script": "eslint . --ext .js,.jsx,.ts,.tsx", "lint:style": "stylelint '{site,components}/**/*.less'", "pre-publish": "npm run test-all -- --skip-build", "prettier": "prettier -c --write **/*", "pretty-quick": "pretty-quick", "pub": "npm run version && antd-tools run pub", "prepublishOnly": "antd-tools run guard", "postpublish": "node ./scripts/post-script.js", "site:theme": "npm run site:theme-dark && npm run site:theme-compact", "site:theme-dark": "cross-env ESBUILD=1 ANT_THEME=dark bisheng build -c ./site/bisheng.config.js", "site:theme-compact": "cross-env ESBUILD=1 ANT_THEME=compact bisheng build -c ./site/bisheng.config.js", "site": "npm run site:theme && cross-env NODE_ICU_DATA=node_modules/full-icu ESBUILD=1 bisheng build --ssr -c ./site/bisheng.config.js", "site-tmp": "cross-env NODE_ICU_DATA=node_modules/full-icu ESBUILD=1 bisheng build --ssr -c ./site/bisheng.config.js", "sort": "npx sort-package-json", "sort-api": "antd-tools run sort-api-table", "start": "antd-tools run clean && cross-env NODE_ENV=development concurrently \"bisheng start -c ./site/bisheng.config.js\"", "test": "jest --config .jest.js --cache=false", "test:update": "jest --config .jest.js --cache=false -u", "test-all": "sh -e ./scripts/test-all.sh", "test-node": "npm run version && jest --config .jest.node.js --cache=false", "tsc": "tsc --noEmit", "site:test": "jest --config .jest.site.js --cache=false --force-exit", "test-image": "npm run dist && docker-compose run tests", "version": "node ./scripts/generate-version", "install-react-16": "npm i --no-save --legacy-peer-deps react@16 react-dom@16 enzyme-adapter-react-16", "install-react-17": "npm i --no-save --legacy-peer-deps react@17 react-dom@17", "install-react-18": "npm i --no-save --legacy-peer-deps react@18 react-dom@18 @testing-library/react@13", "argos": "argos upload imageSnapshots" }, "browserslist": [ "> 0.5%", "last 2 versions", "Firefox ESR", "not dead", "IE 11", "not IE 10" ], "dependencies": { "@ant-design/colors": "^6.0.0", "@ant-design/cssinjs": "^0.0.0-alpha.26", "@ant-design/icons": "^4.7.0", "@ant-design/react-slick": "~0.28.1", "@babel/runtime": "^7.12.5", "@ctrl/tinycolor": "^3.4.0", "classnames": "^2.2.6", "copy-to-clipboard": "^3.2.0", "lodash": "^4.17.21", "memoize-one": "^6.0.0", "moment": "^2.29.2", "rc-cascader": "~3.5.0", "rc-checkbox": "~2.3.0", "rc-collapse": "~3.1.0", "rc-dialog": "~8.7.0", "rc-drawer": "~4.4.2", "rc-dropdown": "~3.4.0", "rc-field-form": "~1.26.1", "rc-image": "~5.5.0", "rc-input": "~0.0.1-alpha.5", "rc-input-number": "~7.3.0", "rc-mentions": "~1.7.0", "rc-menu": "~9.5.1", "rc-motion": "^2.4.4", "rc-notification": "~4.6.0", "rc-pagination": "~3.1.9", "rc-picker": "~2.6.4", "rc-progress": "~3.2.1", "rc-rate": "~2.9.0", "rc-resize-observer": "^1.2.0", "rc-segmented": "~1.3.0", "rc-select": "~14.1.1", "rc-slider": "~10.0.0", "rc-steps": "~4.1.0", "rc-switch": "~3.2.0", "rc-table": "~7.24.0", "rc-tabs": "~11.12.0", "rc-textarea": "~0.3.0", "rc-tooltip": "~5.1.1", "rc-tree": "~5.5.0", "rc-tree-select": "~5.3.0", "rc-trigger": "^5.2.10", "rc-upload": "~4.3.0", "rc-util": "^5.20.0", "scroll-into-view-if-needed": "^2.2.25", "shallowequal": "^1.1.0" }, "devDependencies": { "@ant-design/bisheng-plugin": "^3.0.1", "@ant-design/hitu": "^0.0.0-alpha.13", "@ant-design/tools": "^14.1.0", "@docsearch/css": "^3.0.0", "@qixian.cs/github-contributors-list": "^1.0.3", "@stackblitz/sdk": "^1.3.0", "@testing-library/jest-dom": "^5.16.3", "@testing-library/react": "^12.0.0", "@types/enzyme": "^3.10.5", "@types/gtag.js": "^0.0.10", "@types/jest": "^27.0.0", "@types/jest-axe": "^3.5.3", "@types/jest-environment-puppeteer": "^5.0.0", "@types/jest-image-snapshot": "^4.1.0", "@types/lodash": "^4.14.139", "@types/puppeteer": "^5.4.0", "@types/react": "^18.0.0", "@types/react-color": "^3.0.1", "@types/react-copy-to-clipboard": "^5.0.0", "@types/react-dom": "^18.0.0", "@types/react-window": "^1.8.2", "@types/shallowequal": "^1.1.1", "@types/warning": "^3.0.0", "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^5.0.0", "@wojtekmaj/enzyme-adapter-react-17": "^0.6.0", "antd-img-crop": "^4.0.0", "argos-cli": "^0.3.0", "array-move": "^4.0.0", "babel-plugin-add-react-displayname": "^0.0.5", "bisheng": "^3.2.1", "bisheng-plugin-description": "^0.1.4", "bisheng-plugin-react": "^1.2.0", "bisheng-plugin-toc": "^0.4.4", "bundlesize": "^0.18.0", "chalk": "^4.0.0", "cheerio": "^1.0.0-rc.3", "concurrently": "^7.0.0", "cross-env": "^7.0.0", "css-minimizer-webpack-plugin": "^3.2.0", "dekko": "^0.2.1", "docsearch-react-fork": "^0.0.0-alpha.0", "docsearch.js": "^2.6.3", "duplicate-package-checker-webpack-plugin": "^3.0.0", "enquire-js": "^0.2.1", "enzyme": "^3.10.0", "enzyme-to-json": "^3.6.0", "esbuild-loader": "^2.13.1", "eslint": "^8.0.0", "eslint-config-airbnb": "^19.0.0", "eslint-config-prettier": "^8.0.0", "eslint-plugin-babel": "^5.3.0", "eslint-plugin-compat": "^4.0.0", "eslint-plugin-import": "^2.21.1", "eslint-plugin-jest": "^26.0.0", "eslint-plugin-jsx-a11y": "^6.2.1", "eslint-plugin-markdown": "^2.0.0", "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.1.2", "eslint-plugin-unicorn": "^42.0.0", "fetch-jsonp": "^1.1.3", "fs-extra": "^10.0.0", "full-icu": "^1.3.0", "glob": "^8.0.1", "highlight.js": "^11.5.0", "http-server": "^14.0.0", "husky": "^7.0.1", "identity-obj-proxy": "^3.0.0", "immer": "^9.0.1", "immutability-helper": "^3.0.0", "inquirer": "^8.0.0", "intersection-observer": "^0.12.0", "isomorphic-fetch": "^3.0.0", "jest": "^27.0.3", "jest-axe": "^6.0.0", "jest-environment-node": "^27.4.4", "jest-image-snapshot": "^4.5.1", "jest-puppeteer": "^6.0.0", "jquery": "^3.4.1", "jsdom": "^19.0.0", "jsonml.js": "^0.1.0", "less-vars-to-js": "^1.3.0", "lz-string": "^1.4.4", "mini-css-extract-plugin": "^2.4.5", "mockdate": "^3.0.0", "open": "^8.0.1", "prettier": "^2.3.2", "prettier-plugin-jsdoc": "^0.3.0", "pretty-quick": "^3.0.0", "qs": "^6.10.1", "rc-footer": "^0.6.6", "rc-tween-one": "^3.0.3", "rc-virtual-list": "^3.4.2", "react": "^17.0.0", "react-color": "^2.17.3", "react-copy-to-clipboard": "^5.0.1", "react-dnd": "^15.0.0", "react-dnd-html5-backend": "^15.0.0", "react-dom": "^17.0.0", "react-draggable": "^4.4.3", "react-fast-marquee": "^1.2.1", "react-github-button": "^0.1.11", "react-helmet-async": "~1.3.0", "react-highlight-words": "^0.18.0", "react-infinite-scroll-component": "^6.1.0", "react-intl": "^5.20.4", "react-resizable": "^3.0.1", "react-router-dom": "^6.0.2", "react-sortable-hoc": "^2.0.0", "react-sticky": "^6.0.3", "react-text-loop-next": "0.0.3", "react-window": "^1.8.5", "remark": "^14.0.1", "remark-cli": "^10.0.0", "remark-lint": "^9.0.0", "remark-preset-lint-recommended": "^6.0.0", "remove-files-webpack-plugin": "^1.4.5", "rimraf": "^3.0.0", "scrollama": "^3.0.0", "semver": "^7.3.5", "simple-git": "^3.0.0", "string-replace-loader": "^3.0.3", "stylelint": "^14.0.0", "stylelint-config-prettier": "^9.0.2", "stylelint-config-rational-order": "^0.1.2", "stylelint-config-standard": "^25.0.0", "stylelint-declaration-block-no-ignored-properties": "^2.1.0", "stylelint-order": "^5.0.0", "theme-switcher": "^1.0.2", "typescript": "~4.6.2", "webpack-bundle-analyzer": "^4.1.0", "xhr-mock": "^2.4.1", "yaml-front-matter": "^4.0.0" }, "peerDependencies": { "react": ">=16.9.0", "react-dom": ">=16.9.0" }, "publishConfig": { "registry": "https://registry.npmjs.org/" }, "bundlesize": [ { "path": "./dist/antd.min.js", "maxSize": "350 kB" }, { "path": "./dist/antd.min.css", "maxSize": "66 kB" }, { "path": "./dist/antd.dark.min.css", "maxSize": "67 kB" }, { "path": "./dist/antd.compact.min.css", "maxSize": "66 kB" }, { "path": "./dist/antd.variable.min.css", "maxSize": "67 kB" } ], "tnpm": { "mode": "npm" } }
package.json
1
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017892745381686836, 0.00017252410179935396, 0.00016954891907516867, 0.00017224252223968506, 0.000001876582814475114 ]
{ "id": 4, "code_window": [ " // Basic\n", " genBaseStyle(prefixCls, treeToken, hashId),\n", " // Directory\n", " genDirectoryStyle(treeToken),\n", " ];\n", "};\n", "\n", "// ============================== Export ==============================\n" ], "labels": [ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " treeNodeFX,\n" ], "file_path": "components/tree/style/index.tsx", "type": "add", "edit_start_line_idx": 467 }
import devWarning, { resetWarned } from 'rc-util/lib/warning'; export { resetWarned }; export default (valid: boolean, component: string, message: string): void => { devWarning(valid, `[antd: ${component}] ${message}`); };
components/_util/devWarning.ts
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017002553795464337, 0.00017002553795464337, 0.00017002553795464337, 0.00017002553795464337, 0 ]
{ "id": 4, "code_window": [ " // Basic\n", " genBaseStyle(prefixCls, treeToken, hashId),\n", " // Directory\n", " genDirectoryStyle(treeToken),\n", " ];\n", "};\n", "\n", "// ============================== Export ==============================\n" ], "labels": [ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " treeNodeFX,\n" ], "file_path": "components/tree/style/index.tsx", "type": "add", "edit_start_line_idx": 467 }
import * as React from 'react'; import classNames from 'classnames'; import omit from 'rc-util/lib/omit'; import Checkbox, { CheckboxChangeEvent } from './Checkbox'; import { ConfigContext } from '../config-provider'; import useStyle from './style'; export type CheckboxValueType = string | number | boolean; export interface CheckboxOptionType { label: React.ReactNode; value: CheckboxValueType; style?: React.CSSProperties; disabled?: boolean; onChange?: (e: CheckboxChangeEvent) => void; } export interface AbstractCheckboxGroupProps { prefixCls?: string; className?: string; options?: Array<CheckboxOptionType | string | number>; disabled?: boolean; style?: React.CSSProperties; } export interface CheckboxGroupProps extends AbstractCheckboxGroupProps { name?: string; defaultValue?: Array<CheckboxValueType>; value?: Array<CheckboxValueType>; onChange?: (checkedValue: Array<CheckboxValueType>) => void; children?: React.ReactNode; } export interface CheckboxGroupContext { name?: string; toggleOption?: (option: CheckboxOptionType) => void; value?: any; disabled?: boolean; registerValue: (val: string) => void; cancelValue: (val: string) => void; } export const GroupContext = React.createContext<CheckboxGroupContext | null>(null); const InternalCheckboxGroup: React.ForwardRefRenderFunction<HTMLDivElement, CheckboxGroupProps> = ( { defaultValue, children, options = [], prefixCls: customizePrefixCls, className, style, onChange, ...restProps }, ref, ) => { const { getPrefixCls, direction } = React.useContext(ConfigContext); const [value, setValue] = React.useState<CheckboxValueType[]>( restProps.value || defaultValue || [], ); const [registeredValues, setRegisteredValues] = React.useState<CheckboxValueType[]>([]); React.useEffect(() => { if ('value' in restProps) { setValue(restProps.value || []); } }, [restProps.value]); const getOptions = () => options.map(option => { if (typeof option === 'string' || typeof option === 'number') { return { label: option, value: option, }; } return option; }); const cancelValue = (val: string) => { setRegisteredValues(prevValues => prevValues.filter(v => v !== val)); }; const registerValue = (val: string) => { setRegisteredValues(prevValues => [...prevValues, val]); }; const toggleOption = (option: CheckboxOptionType) => { const optionIndex = value.indexOf(option.value); const newValue = [...value]; if (optionIndex === -1) { newValue.push(option.value); } else { newValue.splice(optionIndex, 1); } if (!('value' in restProps)) { setValue(newValue); } const opts = getOptions(); onChange?.( newValue .filter(val => registeredValues.indexOf(val) !== -1) .sort((a, b) => { const indexA = opts.findIndex(opt => opt.value === a); const indexB = opts.findIndex(opt => opt.value === b); return indexA - indexB; }), ); }; const prefixCls = getPrefixCls('checkbox', customizePrefixCls); const groupPrefixCls = `${prefixCls}-group`; const [wrapSSR, hashId] = useStyle(prefixCls); const domProps = omit(restProps, ['value', 'disabled']); if (options && options.length > 0) { children = getOptions().map(option => ( <Checkbox prefixCls={prefixCls} key={option.value.toString()} disabled={'disabled' in option ? option.disabled : restProps.disabled} value={option.value} checked={value.indexOf(option.value) !== -1} onChange={option.onChange} className={`${groupPrefixCls}-item`} style={option.style} > {option.label} </Checkbox> )); } // eslint-disable-next-line react/jsx-no-constructed-context-values const context = { toggleOption, value, disabled: restProps.disabled, name: restProps.name, // https://github.com/ant-design/ant-design/issues/16376 registerValue, cancelValue, }; const classString = classNames( groupPrefixCls, { [`${groupPrefixCls}-rtl`]: direction === 'rtl', }, className, hashId, ); return wrapSSR( <div className={classString} style={style} {...domProps} ref={ref}> <GroupContext.Provider value={context}>{children}</GroupContext.Provider> </div>, ); }; const CheckboxGroup = React.forwardRef<HTMLDivElement, CheckboxGroupProps>(InternalCheckboxGroup); export default React.memo(CheckboxGroup);
components/checkbox/Group.tsx
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.0026310421526432037, 0.00033308821730315685, 0.00016706979658920318, 0.0001757717109285295, 0.000575329118873924 ]
{ "id": 4, "code_window": [ " // Basic\n", " genBaseStyle(prefixCls, treeToken, hashId),\n", " // Directory\n", " genDirectoryStyle(treeToken),\n", " ];\n", "};\n", "\n", "// ============================== Export ==============================\n" ], "labels": [ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " treeNodeFX,\n" ], "file_path": "components/tree/style/index.tsx", "type": "add", "edit_start_line_idx": 467 }
--- category: Components type: Data Display title: Tree cover: https://gw.alipayobjects.com/zos/alicdn/Xh-oWqg9k/Tree.svg --- A hierarchical list structure component. ## When To Use Almost anything can be represented in a tree structure. Examples include directories, organization hierarchies, biological classifications, countries, etc. The `Tree` component is a way of representing the hierarchical relationship between these things. You can also expand, collapse, and select a treeNode within a `Tree`. ## API ### Tree props | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | | allowDrop | Whether to allow dropping on the node | ({ dropNode, dropPosition }) => boolean | - | | | autoExpandParent | Whether to automatically expand a parent treeNode | boolean | false | | | blockNode | Whether treeNode fill remaining horizontal space | boolean | false | | | checkable | Add a Checkbox before the treeNodes | boolean | false | | | checkedKeys | (Controlled) Specifies the keys of the checked treeNodes (PS: When this specifies the key of a treeNode which is also a parent treeNode, all the children treeNodes of will be checked; and vice versa, when it specifies the key of a treeNode which is a child treeNode, its parent treeNode will also be checked. When `checkable` and `checkStrictly` is true, its object has `checked` and `halfChecked` property. Regardless of whether the child or parent treeNode is checked, they won't impact each other | string\[] \| {checked: string\[], halfChecked: string\[]} | \[] | | | checkStrictly | Check treeNode precisely; parent treeNode and children treeNodes are not associated | boolean | false | | | defaultCheckedKeys | Specifies the keys of the default checked treeNodes | string\[] | \[] | | | defaultExpandAll | Whether to expand all treeNodes by default | boolean | false | | | defaultExpandedKeys | Specify the keys of the default expanded treeNodes | string\[] | \[] | | | defaultExpandParent | If auto expand parent treeNodes when init | boolean | true | | | defaultSelectedKeys | Specifies the keys of the default selected treeNodes | string\[] | \[] | | | disabled | Whether disabled the tree | boolean | false | | | draggable | Specifies whether this Tree or the node is draggable. Use `icon: false` to disable drag handler icon | boolean \| ((node: DataNode) => boolean) \| { icon?: React.ReactNode \| false, nodeDraggable?: (node: DataNode) => boolean } | false | `config`: 4.17.0 | | expandedKeys | (Controlled) Specifies the keys of the expanded treeNodes | string\[] | \[] | | | fieldNames | Customize node title, key, children field name | object | { title: `title`, key: `key`, children: `children` } | 4.17.0 | | filterTreeNode | Defines a function to filter (highlight) treeNodes. When the function returns `true`, the corresponding treeNode will be highlighted | function(node) | - | | | height | Config virtual scroll height. Will not support horizontal scroll when enable this | number | - | | | icon | Customize treeNode icon | ReactNode \| (props) => ReactNode | - | | | loadData | Load data asynchronously | function(node) | - | | | loadedKeys | (Controlled) Set loaded tree nodes. Need work with `loadData` | string\[] | \[] | | | multiple | Allows selecting multiple treeNodes | boolean | false | | | rootClassName | ClassName on the root element | string | - | 4.20.0 | | rootStyle | Style on the root element | CSSProperties | - | 4.20.0 | | selectable | Whether can be selected | boolean | true | | | selectedKeys | (Controlled) Specifies the keys of the selected treeNodes | string\[] | - | | | showIcon | Shows the icon before a TreeNode's title. There is no default style; you must set a custom style for it if set to true | boolean | false | | | showLine | Shows a connecting line | boolean \| {showLeafIcon: boolean} | false | | | switcherIcon | Customize collapse/expand icon of tree node | ReactNode \| (({ expanded: boolean }) => React.ReactNode) | - | renderProps: 4.20.0 | | titleRender | Customize tree node title render | (nodeData) => ReactNode | - | 4.5.0 | | treeData | The treeNodes data Array, if set it then you need not to construct children TreeNode. (key should be unique across the whole array) | array&lt;{ key, title, children, \[disabled, selectable] }> | - | | | virtual | Disable virtual scroll when set to false | boolean | true | 4.1.0 | | onCheck | Callback function for when the onCheck event occurs | function(checkedKeys, e:{checked: bool, checkedNodes, node, event, halfCheckedKeys}) | - | | | onDragEnd | Callback function for when the onDragEnd event occurs | function({event, node}) | - | | | onDragEnter | Callback function for when the onDragEnter event occurs | function({event, node, expandedKeys}) | - | | | onDragLeave | Callback function for when the onDragLeave event occurs | function({event, node}) | - | | | onDragOver | Callback function for when the onDragOver event occurs | function({event, node}) | - | | | onDragStart | Callback function for when the onDragStart event occurs | function({event, node}) | - | | | onDrop | Callback function for when the onDrop event occurs | function({event, node, dragNode, dragNodesKeys}) | - | | | onExpand | Callback function for when a treeNode is expanded or collapsed | function(expandedKeys, {expanded: bool, node}) | - | | | onLoad | Callback function for when a treeNode is loaded | function(loadedKeys, {event, node}) | - | | | onRightClick | Callback function for when the user right clicks a treeNode | function({event, node}) | - | | | onSelect | Callback function for when the user clicks a treeNode | function(selectedKeys, e:{selected: bool, selectedNodes, node, event}) | - | | ### TreeNode props | Property | Description | Type | Default | | | --- | --- | --- | --- | --- | | checkable | When Tree is checkable, set TreeNode display Checkbox or not | boolean | - | | | disableCheckbox | Disables the checkbox of the treeNode | boolean | false | | | disabled | Disables the treeNode | boolean | false | | | icon | Customize icon. When you pass component, whose render will receive full TreeNode props as component props | ReactNode \| (props) => ReactNode | - | | | isLeaf | Determines if this is a leaf node(effective when `loadData` is specified). `false` will force trade TreeNode as a parent node | boolean | - | | | key | Used with (default)ExpandedKeys / (default)CheckedKeys / (default)SelectedKeys. P.S.: It must be unique in all of treeNodes of the tree | string | (internal calculated position of treeNode) | | | selectable | Set whether the treeNode can be selected | boolean | true | | | title | Title | ReactNode | `---` | | ### DirectoryTree props | Property | Description | Type | Default | | --- | --- | --- | --- | | expandAction | Directory open logic, optional: false \| `click` \| `doubleClick` | string \| boolean | `click` | ## Note Before `3.4.0`: The number of treeNodes can be very large, but when `checkable=true`, it will increase the compute time. So, we cache some calculations (e.g. `this.treeNodesStates`) to avoid double computing. But, this brings some restrictions. **When you load treeNodes asynchronously, you should render tree like this**: ```jsx { this.state.treeData.length ? ( <Tree> {this.state.treeData.map(data => ( <TreeNode /> ))} </Tree> ) : ( 'loading tree' ); } ``` ### Tree Methods | Name | Description | | --- | --- | | scrollTo({ key: string \| number; align?: 'top' \| 'bottom' \| 'auto'; offset?: number }) | Scroll to key item in virtual scroll | ## FAQ ### How to hide file icon when use showLine? File icon realize by using switcherIcon. You can overwrite the style to hide it: <https://codesandbox.io/s/883vo47xp8> ### Why defaultExpandedAll not working on ajax data? `default` prefix prop only works when inited. So `defaultExpandedAll` has already executed when ajax load data. You can control `expandedKeys` or render Tree when data loaded to realize expanded all. ### Virtual scroll limitation Virtual scroll only render items in visible region. Thus not support auto width (like long `title` with horizontal scroll). ### What does `disabled` node work logic in the tree? Tree change its data by conduction. Includes checked or auto expanded, it will conduction state to parent / children node until current node is `disabled`. So if a controlled node is `disabled`, it will only modify self state and not affect other nodes. For example, a parent node contains 3 child nodes and one of them is `disabled`. When check the parent node, it will only check rest 2 child nodes. As the same, when check these 2 child node, parent will be checked whatever checked state the `disabled` one is. This conduction logic prevent that modify `disabled` parent checked state by check children node and user can not modify directly with click parent which makes the interactive conflict. If you want to modify this conduction logic, you can customize it with `checkStrictly` prop.
components/tree/index.en-US.md
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017295405268669128, 0.00016712583601474762, 0.00016270970809273422, 0.0001667281030677259, 0.000003115586196145159 ]
{ "id": 5, "code_window": [ "\n", "// ============================== Export ==============================\n", "export default genComponentStyleHook('Tree', (token, { prefixCls, hashId }) => [\n", " getCheckboxStyle(`${prefixCls}-checkbox`, token, hashId),\n", " genTreeStyle(prefixCls, token, hashId),\n", " treeNodeFX,\n", "]);" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep" ], "after_edit": [], "file_path": "components/tree/style/index.tsx", "type": "replace", "edit_start_line_idx": 474 }
// import '../../style/index.less'; // import './index.less'; // deps-lint-skip-all import { CSSObject, CSSInterpolation, Keyframes } from '@ant-design/cssinjs'; import { DerivativeToken, resetComponent, genComponentStyleHook, mergeToken, } from '../../_util/theme'; import { getStyle as getCheckboxStyle } from '../../checkbox/style'; // ============================ Keyframes ============================= const treeNodeFX = new Keyframes('ant-tree-node-fx-do-not-use', { '0%': { opacity: 0, }, '100%': { opacity: 1, }, }); // ============================== Switch ============================== const getSwitchStyle = (prefixCls: string, token: DerivativeToken): CSSObject => ({ [`.${prefixCls}-switcher-icon`]: { display: 'inline-block', fontSize: 10, verticalAlign: 'baseline', svg: { transition: `transform ${token.motionDurationSlow}`, }, }, }); // =============================== Drop =============================== const getDropIndicatorStyle = (prefixCls: string, token: DerivativeToken) => ({ [`.${prefixCls}-drop-indicator`]: { position: 'absolute', // it should displayed over the following node zIndex: 1, height: 2, backgroundColor: token.colorPrimary, borderRadius: 1, pointerEvents: 'none', '&:after': { position: 'absolute', top: -3, insetInlineStart: -6, width: 8, height: 8, backgroundColor: 'transparent', border: `2px solid ${token.colorPrimary}`, borderRadius: '50%', content: '""', }, }, }); // =============================== Base =============================== type TreeToken = DerivativeToken & { treeCls: string; treeNodeCls: string; treeNodePadding: number; treeTitleHeight: number; }; export const genBaseStyle = (prefixCls: string, token: TreeToken, hashId: string): CSSObject => { const { treeCls, treeNodeCls, treeNodePadding, treeTitleHeight } = token; const treeCheckBoxMarginVertical = (treeTitleHeight - token.fontSizeLG) / 2; const treeCheckBoxMarginHorizontal = token.paddingXS; return { [treeCls]: { ...resetComponent(token), background: token.colorBgComponent, borderRadius: token.controlRadius, transition: `background-color ${token.motionDurationSlow}`, '&&-rtl': { // >>> Switcher [`${treeCls}-switcher`]: { '&_close': { [`${treeCls}-switcher-icon`]: { svg: { transform: 'rotate(90deg)', }, }, }, }, }, '&-focused:not(:hover):not(&-active-focused)': { background: token.colorPrimaryOutline, }, // =================== Virtual List =================== [`${treeCls}-list-holder-inner`]: { alignItems: 'flex-start', }, [`&${treeCls}-block-node`]: { [`${treeCls}-list-holder-inner`]: { alignItems: 'stretch', // >>> Title [`${treeCls}-node-content-wrapper`]: { flex: 'auto', }, // >>> Drag [`${treeNodeCls}.dragging`]: { position: 'relative', '&:after': { position: 'absolute', top: 0, insetInlineEnd: 0, bottom: treeNodePadding, insetInlineStart: 0, border: `1px solid ${token.colorPrimary}`, opacity: 0, animation: `${treeNodeFX.getName(hashId)} ${token.motionDurationSlow}`, animationPlayState: 'running', animationFillMode: 'forwards', content: '""', pointerEvents: 'none', }, }, }, }, // ===================== TreeNode ===================== [`${treeNodeCls}`]: { display: 'flex', alignItems: 'flex-start', padding: `0 0 ${treeNodePadding}px 0`, outline: 'none', '&-rtl': { direction: 'rtl', }, // Disabled '&-disabled': { // >>> Title [`${treeCls}-node-content-wrapper`]: { color: token.colorTextDisabled, cursor: 'not-allowed', '&:hover': { background: 'transparent', }, }, }, [`&-active ${treeCls}-node-content-wrapper`]: { background: token.controlItemBgHover, }, [`&:not(&-disabled).filter-node ${treeCls}-title`]: { color: 'inherit', fontWeight: 500, }, }, // >>> Indent [`${treeCls}-indent`]: { alignSelf: 'stretch', whiteSpace: 'nowrap', userSelect: 'none', '&-unit': { display: 'inline-block', width: treeTitleHeight, }, }, // >>> Drag Handler [`${treeCls}-draggable-icon`]: { width: treeTitleHeight, lineHeight: `${treeTitleHeight}px`, textAlign: 'center', opacity: 0.2, transition: `opacity ${token.motionDurationSlow}`, [`${treeNodeCls}:hover &`]: { opacity: 0.45, }, }, // >>> Switcher [`${treeCls}-switcher`]: { ...getSwitchStyle(prefixCls, token), position: 'relative', flex: 'none', alignSelf: 'stretch', width: treeTitleHeight, margin: 0, lineHeight: `${treeTitleHeight}px`, textAlign: 'center', cursor: 'pointer', userSelect: 'none', '&-noop': { cursor: 'default', }, '&_close': { [`${treeCls}-switcher-icon`]: { svg: { transform: 'rotate(-90deg)', }, }, }, '&-loading-icon': { color: token.colorPrimary, }, '&-leaf-line': { position: 'relative', zIndex: 1, display: 'inline-block', width: '100%', height: '100%', // https://github.com/ant-design/ant-design/issues/31884 '&:before': { position: 'absolute', top: 0, insetInlineEnd: treeTitleHeight / 2, bottom: -treeNodePadding, marginInlineStart: -1, borderInlineEnd: `1px solid ${token.colorBorder}`, content: '""', }, '&:after': { position: 'absolute', width: (treeTitleHeight / 2) * 0.8, height: treeTitleHeight / 2, borderBottom: `1px solid ${token.colorBorder}`, content: '""', }, }, }, // >>> Checkbox [`${treeCls}-checkbox`]: { top: 'initial', marginInlineEnd: treeCheckBoxMarginHorizontal, marginBlockStart: treeCheckBoxMarginVertical, }, // >>> Title [`& ${treeCls}-node-content-wrapper`]: { display: 'flex', flexWrap: 'nowrap', position: 'relative', zIndex: 'auto', minHeight: treeTitleHeight, margin: 0, padding: `0 ${token.paddingXS / 2}px`, color: 'inherit', lineHeight: `${treeTitleHeight}px`, background: 'transparent', borderRadius: token.controlRadius, cursor: 'pointer', transition: `all ${token.motionDurationSlow}, border 0s, line-height 0s, box-shadow 0s`, '&:hover': { backgroundColor: token.controlItemBgHover, }, [`&${treeCls}-node-selected`]: { backgroundColor: token.colorPrimaryOutline, }, // Icon [`${treeCls}-iconEle`]: { display: 'inline-block', width: treeTitleHeight, height: treeTitleHeight, lineHeight: `${treeTitleHeight}px`, textAlign: 'center', verticalAlign: 'top', '&:empty': { display: 'none', }, }, }, // https://github.com/ant-design/ant-design/issues/28217 [`${treeCls}-unselectable ${treeCls}-node-content-wrapper:hover`]: { backgroundColor: 'transparent', }, // ==================== Draggable ===================== [`${treeCls}-node-content-wrapper`]: { lineHeight: `${treeTitleHeight}px`, userSelect: 'none', ...getDropIndicatorStyle(prefixCls, token), }, [`${treeNodeCls}.drop-container`]: { '> [draggable]': { boxShadow: `0 0 0 2px ${token.colorPrimary}`, }, }, // ==================== Show Line ===================== '&-show-line': { // ================ Indent lines ================ [`${treeCls}-indent`]: { '&-unit': { position: 'relative', height: '100%', '&:before': { position: 'absolute', top: 0, insetInlineEnd: treeTitleHeight / 2, bottom: -treeNodePadding, borderInlineEnd: `1px solid ${token.colorBorder}`, content: '""', }, '&-end': { '&:before': { display: 'none', }, }, }, }, // ============== Cover Background ============== [`${treeCls}-switcher`]: { background: token.colorBgComponent, '&-line-icon': { // https://github.com/ant-design/ant-design/issues/32813 verticalAlign: '-0.15em', }, }, }, [`${treeNodeCls}-leaf-last`]: { [`${treeCls}-switcher`]: { '&-leaf-line': { '&:before': { top: 'auto !important', bottom: 'auto !important', height: `${treeTitleHeight / 2}px !important`, }, }, }, }, }, }; }; // ============================ Directory ============================= export const genDirectoryStyle = (token: TreeToken): CSSObject => { const { treeCls, treeNodeCls, treeNodePadding } = token; return { [`${treeCls}${treeCls}-directory`]: { // ================== TreeNode ================== [treeNodeCls]: { position: 'relative', // Hover color '&:before': { position: 'absolute', top: 0, insetInlineEnd: 0, bottom: treeNodePadding, insetInlineStart: 0, transition: `background-color ${token.motionDurationSlow}`, content: '""', pointerEvents: 'none', }, '&:hover': { '&:before': { background: token.controlItemBgHover, }, }, // Elements '> *': { zIndex: 1, }, // >>> Switcher [`${treeCls}-switcher`]: { transition: `color ${token.motionDurationSlow}`, }, // >>> Title [`${treeCls}-node-content-wrapper`]: { borderRadius: 0, userSelect: 'none', '&:hover': { background: 'transparent', }, [`&.${treeCls}-node-selected`]: { color: token.colorTextLightSolid, background: 'transparent', }, }, // ============= Selected ============= '&-selected': { [` &:hover::before, &::before `]: { background: token.colorPrimary, }, // >>> Switcher [`${treeCls}-switcher`]: { color: token.colorTextLightSolid, }, // >>> Title [`${treeCls}-node-content-wrapper`]: { color: token.colorTextLightSolid, background: 'transparent', }, }, }, }, }; }; // ============================== Merged ============================== export const genTreeStyle = ( prefixCls: string, token: DerivativeToken, hashId: string, ): CSSInterpolation => { const treeCls = `.${prefixCls}`; const treeNodeCls = `${treeCls}-treenode`; const treeNodePadding = token.paddingXS / 2; const treeTitleHeight = token.controlHeightSM; const treeToken = mergeToken<TreeToken>(token, { treeCls, treeNodeCls, treeNodePadding, treeTitleHeight, }); return [ // Basic genBaseStyle(prefixCls, treeToken, hashId), // Directory genDirectoryStyle(treeToken), ]; }; // ============================== Export ============================== export default genComponentStyleHook('Tree', (token, { prefixCls, hashId }) => [ getCheckboxStyle(`${prefixCls}-checkbox`, token, hashId), genTreeStyle(prefixCls, token, hashId), treeNodeFX, ]);
components/tree/style/index.tsx
1
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.9948835968971252, 0.028200700879096985, 0.00016628166486043483, 0.000647357665002346, 0.14301660656929016 ]
{ "id": 5, "code_window": [ "\n", "// ============================== Export ==============================\n", "export default genComponentStyleHook('Tree', (token, { prefixCls, hashId }) => [\n", " getCheckboxStyle(`${prefixCls}-checkbox`, token, hashId),\n", " genTreeStyle(prefixCls, token, hashId),\n", " treeNodeFX,\n", "]);" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep" ], "after_edit": [], "file_path": "components/tree/style/index.tsx", "type": "replace", "edit_start_line_idx": 474 }
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Checkbox image', () => { imageDemoTest('checkbox'); });
components/checkbox/__tests__/image.test.ts
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00016983611567411572, 0.00016983611567411572, 0.00016983611567411572, 0.00016983611567411572, 0 ]
{ "id": 5, "code_window": [ "\n", "// ============================== Export ==============================\n", "export default genComponentStyleHook('Tree', (token, { prefixCls, hashId }) => [\n", " getCheckboxStyle(`${prefixCls}-checkbox`, token, hashId),\n", " genTreeStyle(prefixCls, token, hashId),\n", " treeNodeFX,\n", "]);" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep" ], "after_edit": [], "file_path": "components/tree/style/index.tsx", "type": "replace", "edit_start_line_idx": 474 }
// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead export const tuple = <T extends string[]>(...args: T) => args; export const tupleNum = <T extends number[]>(...args: T) => args; /** * https://stackoverflow.com/a/59187769 Extract the type of an element of an array/tuple without * performing indexing */ export type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never; /** https://github.com/Microsoft/TypeScript/issues/29729 */ export type LiteralUnion<T extends U, U> = T | (U & {});
components/_util/type.ts
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017295769066549838, 0.00017079798271879554, 0.0001686382747720927, 0.00017079798271879554, 0.000002159707946702838 ]
{ "id": 5, "code_window": [ "\n", "// ============================== Export ==============================\n", "export default genComponentStyleHook('Tree', (token, { prefixCls, hashId }) => [\n", " getCheckboxStyle(`${prefixCls}-checkbox`, token, hashId),\n", " genTreeStyle(prefixCls, token, hashId),\n", " treeNodeFX,\n", "]);" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep" ], "after_edit": [], "file_path": "components/tree/style/index.tsx", "type": "replace", "edit_start_line_idx": 474 }
--- order: 11 title: zh-CN: 自定义新增页签触发器 en-US: Customized trigger of new tab --- ## zh-CN 隐藏默认的页签增加图标,给自定义触发器绑定事件。 ## en-US Hide default plus icon, and bind event for customized trigger. ```jsx import { Tabs, Button } from 'antd'; const { TabPane } = Tabs; class Demo extends React.Component { constructor(props) { super(props); this.newTabIndex = 0; const panes = new Array(2).fill(null).map((_, index) => { const id = String(index + 1); return { title: `Tab ${id}`, content: `Content of Tab Pane ${id}`, key: id }; }); this.state = { activeKey: panes[0].key, panes, }; } onChange = activeKey => { this.setState({ activeKey }); }; onEdit = (targetKey, action) => { this[action](targetKey); }; add = () => { const { panes } = this.state; const activeKey = `newTab${this.newTabIndex++}`; panes.push({ title: 'New Tab', content: 'New Tab Pane', key: activeKey }); this.setState({ panes, activeKey }); }; remove = targetKey => { let { activeKey } = this.state; let lastIndex; this.state.panes.forEach((pane, i) => { if (pane.key === targetKey) { lastIndex = i - 1; } }); const panes = this.state.panes.filter(pane => pane.key !== targetKey); if (panes.length && activeKey === targetKey) { if (lastIndex >= 0) { activeKey = panes[lastIndex].key; } else { activeKey = panes[0].key; } } this.setState({ panes, activeKey }); }; render() { return ( <div> <div style={{ marginBottom: 16 }}> <Button onClick={this.add}>ADD</Button> </div> <Tabs hideAdd onChange={this.onChange} activeKey={this.state.activeKey} type="editable-card" onEdit={this.onEdit} > {this.state.panes.map(pane => ( <TabPane tab={pane.title} key={pane.key}> {pane.content} </TabPane> ))} </Tabs> </div> ); } } export default Demo; ```
components/tabs/demo/custom-add-trigger.md
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017900117381941527, 0.00017390152788721025, 0.00016688033065292984, 0.00017431068408768624, 0.0000034802330901584355 ]
{ "id": 6, "code_window": [ " \"IE 11\",\n", " \"not IE 10\"\n", " ],\n", " \"dependencies\": {\n", " \"@ant-design/colors\": \"^6.0.0\",\n", " \"@ant-design/cssinjs\": \"^0.0.0-alpha.26\",\n", " \"@ant-design/icons\": \"^4.7.0\",\n", " \"@ant-design/react-slick\": \"~0.28.1\",\n", " \"@babel/runtime\": \"^7.12.5\",\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " \"@ant-design/cssinjs\": \"^0.0.0-alpha.27\",\n" ], "file_path": "package.json", "type": "replace", "edit_start_line_idx": 117 }
// deps-lint-skip-all import { CSSObject } from '@ant-design/cssinjs'; import { TinyColor } from '@ctrl/tinycolor'; import { FullToken, genComponentStyleHook, GenerateStyle, mergeToken, resetComponent, roundedArrow, slideDownIn, slideDownOut, slideUpIn, slideUpOut, } from '../../_util/theme'; import { genActiveStyle, genBasicInputStyle, genHoverStyle, initInputToken, InputToken, } from '../../input/style'; // FIXME: need full token check export interface ComponentToken { zIndexDropdown: number; pickerTextHeight: number; pickerPanelCellWidth: number; pickerPanelCellHeight: number; pickerDateHoverRangeBorderColor: string; pickerBasicCellHoverWithRangeColor: string; pickerPanelWithoutTimeCellHeight: number; pickerTimePanelColumnHeight: number; pickerTimePanelColumnWidth: number; pickerTimePanelCellHeight: number; } type PickerToken = InputToken<FullToken<'DatePicker'>> & { arrowWidth: number; pickerCellInnerCls: string; hashId?: string; }; const genPikerPadding = ( token: PickerToken, inputHeight: number, fontSize: number, paddingHorizontal: number, ): CSSObject => { const fontHeight = Math.floor(fontSize * token.lineHeight) + 2; const paddingTop = Math.max((inputHeight - fontHeight) / 2, 0); const paddingBottom = Math.max(inputHeight - fontHeight - paddingTop, 0); return { padding: `${paddingTop}px ${paddingHorizontal}px ${paddingBottom}px`, }; }; const genPickerStyle: GenerateStyle<PickerToken> = token => { const { componentCls, antCls } = token; return { [componentCls]: { ...resetComponent(token), ...genPikerPadding(token, token.controlHeight, token.fontSize, token.inputPaddingHorizontal), position: 'relative', display: 'inline-flex', alignItems: 'center', background: token.colorBgComponent, border: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorBorder}`, borderRadius: token.radiusBase, transition: `border ${token.motionDurationSlow}, box-shadow ${token.motionDurationSlow}`, '&:hover, &-focused': { ...genHoverStyle(token), }, '&-focused': { ...genActiveStyle(token), }, '&&-disabled': { background: token.colorBgComponentDisabled, borderColor: token.colorBorder, cursor: 'not-allowed', [`${componentCls}-suffix`]: { color: token.colorTextDisabled, }, }, '&&-borderless': { backgroundColor: 'transparent !important', borderColor: 'transparent !important', boxShadow: 'none !important', }, // ======================== Input ========================= [`${componentCls}-input`]: { position: 'relative', display: 'inline-flex', alignItems: 'center', width: '100%', '> input': { ...genBasicInputStyle(token), flex: 'auto', // Fix Firefox flex not correct: // https://github.com/ant-design/ant-design/pull/20023#issuecomment-564389553 minWidth: 1, height: 'auto', padding: 0, background: 'transparent', border: 0, '&:focus': { boxShadow: 'none', }, '&[disabled]': { background: 'transparent', }, }, '&:hover': { [`${componentCls}-clear`]: { opacity: 1, }, }, '&-placeholder': { '> input': { color: token.colorPlaceholder, }, }, }, // Size '&-large': { ...genPikerPadding( token, token.controlHeightLG, token.fontSizeLG, token.inputPaddingHorizontal, ), [`${componentCls}-input > input`]: { fontSize: token.fontSizeLG, }, }, '&-small': { ...genPikerPadding( token, token.controlHeightSM, token.fontSize, token.inputPaddingHorizontalSM, ), }, [`${componentCls}-suffix`]: { display: 'flex', flex: 'none', alignSelf: 'center', marginInlineStart: token.paddingXS / 2, color: token.colorTextDisabled, lineHeight: 1, pointerEvents: 'none', '> *': { verticalAlign: 'top', '&:not(:last-child)': { marginInlineEnd: token.marginXS, }, }, }, [`${componentCls}-clear`]: { position: 'absolute', top: '50%', insetInlineEnd: 0, color: token.colorTextDisabled, lineHeight: 1, background: token.colorBgComponent, transform: 'translateY(-50%)', cursor: 'pointer', opacity: 0, transition: `opacity ${token.motionDurationSlow}, color ${token.motionDurationSlow}`, '> *': { verticalAlign: 'top', }, '&:hover': { color: token.colorTextSecondary, }, }, [`${componentCls}-separator`]: { position: 'relative', display: 'inline-block', width: '1em', height: token.fontSizeLG, color: token.colorTextDisabled, fontSize: token.fontSizeLG, verticalAlign: 'top', cursor: 'default', [`${componentCls}-focused &`]: { color: token.colorTextSecondary, }, [`${componentCls}-range-separator &`]: { [`${componentCls}-disabled &`]: { cursor: 'not-allowed', }, }, }, // ======================== Range ========================= '&-range': { position: 'relative', display: 'inline-flex', // Clear [`${componentCls}-clear`]: { insetInlineEnd: token.inputPaddingHorizontal, }, '&:hover': { [`${componentCls}-clear`]: { opacity: 1, }, }, // Active bar [`${componentCls}-active-bar`]: { bottom: -token.controlLineWidth, height: 2, // FIXME: v4 magic number marginInlineStart: token.inputPaddingHorizontal, background: token.colorPrimary, opacity: 0, transition: `all ${token.motionDurationSlow} ease-out`, pointerEvents: 'none', }, [`&${componentCls}-focused`]: { [`${componentCls}-active-bar`]: { opacity: 1, }, }, [`${componentCls}-range-separator`]: { alignItems: 'center', padding: `0 ${token.paddingXS}px`, lineHeight: 1, }, [`&${componentCls}-small`]: { [`${componentCls}-clear`]: { insetInlineEnd: token.inputPaddingHorizontalSM, }, [`${componentCls}-active-bar`]: { marginInlineStart: token.inputPaddingHorizontalSM, }, }, }, // ======================= Dropdown ======================= '&-dropdown': { ...resetComponent(token), position: 'absolute', zIndex: token.zIndexDropdown, '&&-hidden': { display: 'none', }, '&&-placement-bottomLeft': { [`${componentCls}-range-arrow`]: { top: `${token.arrowWidth / 2 - token.arrowWidth / 3 + 0.7}px`, display: 'block', transform: 'rotate(-135deg) translateY(1px)', }, }, '&&-placement-topLeft': { [`${componentCls}-range-arrow`]: { bottom: `${token.arrowWidth / 2 - token.arrowWidth / 3 + 0.7}px`, display: 'block', transform: 'rotate(45deg)', }, }, [`&${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-topLeft, &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-topRight, &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-topLeft, &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-topRight`]: { animationName: slideDownIn.getName(token.hashId), }, [`&${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-bottomLeft, &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-bottomRight, &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-bottomLeft, &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-bottomRight`]: { animationName: slideUpIn.getName(token.hashId), }, [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-topLeft, &${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-topRight`]: { animationName: slideDownOut.getName(token.hashId), }, [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-bottomLeft, &${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-bottomRight`]: { animationName: slideUpOut.getName(token.hashId), }, // Time picker with additional style [`${componentCls}-panel > ${componentCls}-time-panel`]: { paddingTop: token.paddingXS / 2, }, // ======================== Ranges ======================== [`${componentCls}-ranges`]: { marginBottom: 0, padding: `${token.paddingXS / 2}px ${token.paddingSM}px`, overflow: 'hidden', lineHeight: `${ token.pickerTextHeight - 2 * token.controlLineWidth - token.paddingXS / 2 }px`, textAlign: 'start', listStyle: 'none', display: 'flex', justifyContent: 'space-between', '> li': { display: 'inline-block', }, // https://github.com/ant-design/ant-design/issues/23687 [`${componentCls}-preset > ${antCls}-tag-blue`]: { color: token.colorPrimary, background: token.controlItemBgActive, borderColor: token.colorPrimarySecondary, cursor: 'pointer', }, [`${componentCls}-ok`]: { marginInlineStart: 'auto', }, }, [`${componentCls}-range-wrapper`]: { display: 'flex', }, [`${componentCls}-range-arrow`]: { position: 'absolute', zIndex: 1, display: 'none', width: token.arrowWidth, height: token.arrowWidth, marginInlineStart: token.inputPaddingHorizontal * 1.5, background: `linear-gradient(135deg, transparent 40%, ${token.colorBgComponent} 40%)`, // Use linear-gradient to prevent arrow from covering text boxShadow: `2px 2px 6px -2px fade(#000, 10%)`, // use spread radius to hide shadow over popover, FIXME: v4 magic transition: `left ${token.motionDurationSlow} ease-out`, ...roundedArrow(token.arrowWidth, 5, token.colorBgComponent), }, [`${componentCls}-panel-container`]: { overflow: 'hidden', verticalAlign: 'top', background: token.colorBgComponent, borderRadius: token.radiusBase, boxShadow: token.boxShadow, transition: `margin ${token.motionDurationSlow}`, [`${componentCls}-panels`]: { display: 'inline-flex', flexWrap: 'nowrap', direction: 'ltr', }, [`${componentCls}-panel`]: { verticalAlign: 'top', background: 'transparent', borderWidth: `0 0 ${token.controlLineWidth}px`, borderRadius: 0, [`${componentCls}-content, table`]: { textAlign: 'center', }, '&-focused': { borderColor: token.colorBorder, }, }, }, }, '&-dropdown-range': { padding: `${(token.arrowWidth * 2) / 3}px 0`, '&-hidden': { display: 'none', }, }, '&-rtl': { direction: 'rtl', [`${componentCls}-separator`]: { transform: 'rotate(180deg)', }, [`${componentCls}-footer`]: { '&-extra': { direction: 'rtl', }, }, }, }, }; }; const genPickerCellInnerStyle = (token: PickerToken, cellClassName: string): CSSObject => { const { componentCls } = token; return { '&::before': { position: 'absolute', top: '50%', insetInlineStart: 0, insetInlineEnd: 0, zIndex: 1, height: token.pickerPanelCellHeight, transform: 'translateY(-50%)', transition: `all ${token.motionDurationSlow}`, content: '""', }, // >>> Default [cellClassName]: { position: 'relative', zIndex: 2, display: 'inline-block', minWidth: token.pickerPanelCellHeight, height: token.pickerPanelCellHeight, lineHeight: `${token.pickerPanelCellHeight}px`, borderRadius: token.radiusBase, transition: `background ${token.motionDurationSlow}, border ${token.motionDurationSlow}`, }, // >>> Hover [`&:hover:not(&-in-view), &:hover:not(&-selected):not(&-range-start):not(&-range-end):not(&-range-hover-start):not(&-range-hover-end)`]: { [cellClassName]: { background: token.controlItemBgHover, }, }, // >>> Today [`&-in-view:is(&-today) ${cellClassName}`]: { '&::before': { position: 'absolute', top: 0, insetInlineEnd: 0, bottom: 0, insetInlineStart: 0, zIndex: 1, border: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorPrimary}`, borderRadius: token.radiusBase, content: '""', }, }, // >>> In Range '&-in-view:is(&-in-range)': { position: 'relative', '&::before': { background: token.controlItemBgActive, }, }, // >>> Selected [`&-in-view:is(&-selected) ${cellClassName}, &-in-view:is(&-range-start) ${cellClassName}, &-in-view:is(&-range-end) ${cellClassName}`]: { color: '#fff', // FIXME: text-color-invert background: token.colorPrimary, }, [`&-in-view:is(&-range-start):not(&-range-start-single), &-in-view:is(&-range-end):not(&-range-end-single)`]: { '&::before': { background: token.controlItemBgActive, }, }, '&-in-view:is(&-range-start)::before': { insetInlineStart: '50%', }, '&-in-view:is(&-range-end)::before': { insetInlineEnd: '50%', }, // >>> Range Hover [`&-in-view:is(&-range-hover-start):not(&-in-range):not(&-range-start):not(&-range-end), &-in-view:is(&-range-hover-end):not(&-in-range):not(&-range-start):not(&-range-end), &-in-view:is(&-range-hover-start):is(&-range-start-single), &-in-view:is(&-range-hover-start):is(&-range-start):is(&-range-end):is(&-range-end-near-hover), &-in-view:is(&-range-hover-end):is(&-range-start):is(&-range-end):is(&-range-start-near-hover), &-in-view:is(&-range-hover-end):is(&-range-end-single), &-in-view:is(&-range-hover):not(&-in-range)`]: { '&::after': { position: 'absolute', top: '50%', zIndex: 0, height: token.controlHeightSM, borderTop: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderBottom: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, transform: 'translateY(-50%)', transition: `all ${token.motionDurationSlow}`, content: '""', }, }, // Add space for stash [`&-range-hover-start::after, &-range-hover-end::after, &-range-hover::after`]: { insetInlineEnd: 0, insetInlineStart: 2, // FIXME: v4 magic number }, // Hover with in range [`&-in-view:is(&-in-range):is(&-range-hover)::before, &-in-view:is(&-range-start):is(&-range-hover)::before, &-in-view:is(&-range-end):is(&-range-hover)::before, &-in-view:is(&-range-start):not(&-range-start-single):is(&-range-hover-start)::before, &-in-view:is(&-range-end):not(&-range-end-single):is(&-range-hover-end)::before, ${componentCls}-panel > :not(${componentCls}-date-panel) &-in-view:is(&-in-range):is(&-range-hover-start)::before, ${componentCls}-panel > :not(${componentCls}-date-panel) &-in-view:is(&-in-range):is(&-range-hover-end)::before`]: { background: token.pickerBasicCellHoverWithRangeColor, }, // range start border-radius [`&-in-view:is(&-range-start):not(&-range-start-single):not(&-range-end) ${cellClassName}`]: { borderStartStartRadius: token.radiusBase, borderEndStartRadius: token.radiusBase, borderStartEndRadius: 0, borderEndEndRadius: 0, }, // range end border-radius [`&-in-view:is(&-range-end):not(&-range-end-single):not(&-range-start) ${cellClassName}`]: { borderStartStartRadius: 0, borderEndStartRadius: 0, borderStartEndRadius: token.radiusBase, borderEndEndRadius: token.radiusBase, }, // DatePanel only [`${componentCls}-date-panel &-in-view:is(&-in-range):is(&-range-hover-start) ${cellClassName}, ${componentCls}-date-panel &-in-view:is(&-in-range):is(&-range-hover-end) ${cellClassName}`]: { '&::after': { position: 'absolute', top: 0, bottom: 0, zIndex: -1, background: token.pickerBasicCellHoverWithRangeColor, transition: `all ${token.motionDurationSlow}`, content: '""', }, }, [`${componentCls}-date-panel &-in-view:is(&-in-range):is(&-range-hover-start) ${cellClassName}::after`]: { insetInlineEnd: -5 - token.controlLineWidth, // FIXME: v4 magic number insetInlineStart: 0, }, [`${componentCls}-date-panel &-in-view:is(&-in-range):is(&-range-hover-end) ${cellClassName}::after`]: { insetInlineEnd: 0, insetInlineStart: -5 - token.controlLineWidth, // FIXME: v4 magic number }, // Hover with range start & end '&-range-hover:is(&-range-start)::after': { insetInlineEnd: '50%', }, '&-range-hover:is(&-range-end)::after': { insetInlineStart: '50%', }, // Edge start [`tr > &-in-view:is(&-range-hover):first-child::after, tr > &-in-view:is(&-range-hover-end):first-child::after, &-in-view:is(&-start):is(&-range-hover-edge-start):is(&-range-hover-edge-start-near-range)::after, &-in-view:is(&-range-hover-edge-start):not(&-range-hover-edge-start-near-range)::after, &-in-view:is(&-range-hover-start)::after`]: { insetInlineStart: 6, // FIXME: v4 magic number borderInlineStart: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderStartStartRadius: token.controlLineWidth, borderEndStartRadius: token.controlLineWidth, }, // Edge end [`tr > &-in-view:is(&-range-hover):last-child::after, tr > &-in-view:is(&-range-hover-start):last-child::after, &-in-view:is(&-end):is(&-range-hover-edge-end):is(&-range-hover-edge-end-near-range)::after, &-in-view:is(&-range-hover-edge-end):not(&-range-hover-edge-end-near-range)::after, &-in-view:is(&-range-hover-end)::after`]: { insetInlineEnd: 6, // FIXME: v4 magic number borderInlineEnd: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderStartEndRadius: token.controlLineWidth, borderEndEndRadius: token.controlLineWidth, }, // >>> Disabled '&-disabled': { color: token.colorTextDisabled, pointerEvents: 'none', [cellClassName]: { background: 'transparent', }, '&::before': { background: new TinyColor({ r: 0, g: 0, b: 0, a: 0.04 }).toRgbString(), }, }, [`&-disabled:is(&-today) ${cellClassName}::before`]: { borderColor: token.colorTextDisabled, }, }; }; const genPanelStyle: GenerateStyle<PickerToken> = token => { const { componentCls, pickerCellInnerCls } = token; const pickerArrowSize = 7; // FIXME: v4 magic number const pickerYearMonthCellWidth = 60; // FIXME: v4 magic number const pickerPanelWidth = token.pickerPanelCellWidth * 7 + token.paddingSM * 2 + 4; const hoverCellFixedDistance = (pickerPanelWidth - token.paddingXS * 2) / 3 - pickerYearMonthCellWidth / 2; return { [`${componentCls}-dropdown`]: { [componentCls]: { '&-panel': { display: 'inline-flex', flexDirection: 'column', textAlign: 'center', background: token.colorBgComponent, border: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorBorder}`, borderRadius: token.radiusBase, outline: 'none', '&-focused': { borderColor: token.colorPrimary, }, '&-rtl': { direction: 'rtl', [`${componentCls}-prev-icon, ${componentCls}-super-prev-icon`]: { transform: 'rotate(135deg)', }, [`${componentCls}-next-icon, ${componentCls}-super-next-icon`]: { transform: 'rotate(-45deg)', }, }, }, // ======================================================== // = Shared Panel = // ======================================================== [`&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel`]: { display: 'flex', flexDirection: 'column', width: pickerPanelWidth, }, // ======================= Header ======================= '&-header': { display: 'flex', padding: `0 ${token.paddingXS}px`, color: token.colorTextHeading, borderBottom: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorBorder}`, '> *': { flex: 'none', }, button: { padding: 0, color: token.colorTextDisabled, lineHeight: `${token.pickerTextHeight}px`, background: 'transparent', border: 0, cursor: 'pointer', transition: `color ${token.motionDurationSlow}`, }, '> button': { minWidth: '1.6em', fontSize: token.fontSize, '&:hover': { color: token.colorText, }, }, '&-view': { flex: 'auto', fontWeight: 500, lineHeight: `${token.pickerTextHeight}px`, button: { color: 'inherit', fontWeight: 'inherit', '&:not(:first-child)': { marginInlineStart: token.paddingXS, }, '&:hover': { color: token.colorPrimary, }, }, }, }, // Arrow button [`&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon`]: { position: 'relative', display: 'inline-block', width: pickerArrowSize, height: pickerArrowSize, '&::before': { position: 'absolute', top: 0, insetInlineStart: 0, display: 'inline-block', width: pickerArrowSize, height: pickerArrowSize, border: `0 solid currentcolor`, borderBlockStart: 1.5, // FIXME: v4 magic borderBlockEnd: 0, borderInlineStart: 1.5, // FIXME: v4 magic borderInlineEnd: 0, content: '""', }, }, [`&-super-prev-icon, &-super-next-icon`]: { '&::after': { position: 'absolute', top: Math.ceil(pickerArrowSize / 2), insetInlineStart: Math.ceil(pickerArrowSize / 2), display: 'inline-block', width: pickerArrowSize, height: pickerArrowSize, border: '0 solid currentcolor', borderBlockStart: 1.5, // FIXME: v4 magic borderBlockEnd: 0, borderInlineStart: 1.5, // FIXME: v4 magic borderInlineEnd: 0, content: '""', }, }, [`&-prev-icon, &-super-prev-icon`]: { transform: 'rotate(-45deg)', }, [`&-next-icon, &-super-next-icon`]: { transform: 'rotate(135deg)', }, // ======================== Body ======================== '&-content': { width: '100%', tableLayout: 'fixed', borderCollapse: 'collapse', 'th, td': { position: 'relative', minWidth: 24, // FIXME: v4 magic number fontWeight: 400, }, th: { height: 30, // FIXME: v4 magic number color: token.colorText, lineHeight: '30px', // FIXME: v4 magic string }, }, '&-cell': { padding: `3px 0`, // FIXME: v4 magic string color: token.colorTextDisabled, cursor: 'pointer', // In view '&-in-view': { color: token.colorText, }, ...genPickerCellInnerStyle(token, pickerCellInnerCls), }, [`&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel`]: { [`${componentCls}-content`]: { height: token.pickerPanelWithoutTimeCellHeight * 4, }, [pickerCellInnerCls]: { padding: `0 ${token.paddingXS}px`, }, }, '&-quarter-panel': { [`${componentCls}-content`]: { height: 56, // FIXME: v4 magic number }, }, // ======================== Footer ======================== [`&-panel ${componentCls}-footer`]: { borderTop: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorSplit}`, }, '&-footer': { width: 'min-content', minWidth: '100%', lineHeight: `${token.pickerTextHeight - 2 * token.controlLineWidth}px`, textAlign: 'center', borderBottom: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorSplit}`, '&-extra': { padding: `0 ${token.paddingSM}`, lineHeight: `${token.pickerTextHeight - 2 * token.controlLineWidth}px`, textAlign: 'start', '&:not(:last-child)': { borderBottom: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorBorder}`, }, }, }, '&-now': { textAlign: 'start', }, '&-today-btn': { color: token.colorLink, '&:hover': { color: token.colorLinkHover, }, '&:active': { color: token.colorLinkActive, }, '&:is(&-disabled)': { color: token.colorTextDisabled, cursor: 'not-allowed', }, }, // ======================================================== // = Special = // ======================================================== // ===================== Decade Panel ===================== '&-decade-panel': { [pickerCellInnerCls]: { padding: `0 ${token.paddingXS / 2}px`, }, [`${componentCls}-cell::before`]: { display: 'none', }, }, // ============= Year & Quarter & Month Panel ============= [`&-year-panel, &-quarter-panel, &-month-panel`]: { [`${componentCls}-body`]: { padding: `0 ${token.paddingXS}px`, }, [pickerCellInnerCls]: { width: pickerYearMonthCellWidth, }, [`${componentCls}-cell-range-hover-start::after`]: { insetInlineStart: hoverCellFixedDistance, borderInlineStart: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderStartStartRadius: token.radiusBase, borderBottomStartRadius: token.radiusBase, borderStartEndRadius: 0, borderBottomEndRadius: 0, [`${componentCls}-panel-rtl &`]: { insetInlineEnd: hoverCellFixedDistance, borderInlineEnd: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderStartStartRadius: 0, borderBottomStartRadius: 0, borderStartEndRadius: token.radiusBase, borderBottomEndRadius: token.radiusBase, }, }, [`${componentCls}-cell-range-hover-end::after`]: { insetInlineEnd: hoverCellFixedDistance, borderInlineEnd: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderStartStartRadius: 0, borderBottomStartRadius: 0, borderStartEndRadius: token.radiusBase, borderBottomEndRadius: token.radiusBase, [`${componentCls}-panel-rtl &`]: { insetInlineStart: hoverCellFixedDistance, borderInlineStart: `${token.controlLineWidth}px dashed ${token.pickerDateHoverRangeBorderColor}`, borderStartStartRadius: token.radiusBase, borderBottomStartRadius: token.radiusBase, borderStartEndRadius: 0, borderBottomEndRadius: 0, }, }, }, // ====================== Week Panel ====================== '&-week-panel': { [`${componentCls}-body`]: { padding: `${token.paddingXS}px ${token.paddingSM}px`, }, // Clear cell style [`${componentCls}-cell`]: { [`&:hover ${pickerCellInnerCls}, &-selected ${pickerCellInnerCls}, ${pickerCellInnerCls}`]: { background: 'transparent !important', }, }, '&-row': { td: { transition: `background ${token.motionDurationSlow}`, }, '&:hover td': { background: token.controlItemBgHover, }, [`&-selected td, &-selected:hover td`]: { background: token.colorPrimary, [`&${componentCls}-cell-week`]: { color: new TinyColor({ r: 255, g: 255, b: 255, a: 0.5 }).toRgbString(), // FIXME: fade(@text-color-inverse, 50%) }, [`&${componentCls}-cell-today ${pickerCellInnerCls}::before`]: { borderColor: '#fff', // FIXME: text color inverse }, [pickerCellInnerCls]: { color: '#fff', // FIXME: text color inverse }, }, }, }, // ====================== Date Panel ====================== '&-date-panel': { [`${componentCls}-body`]: { padding: `${token.paddingXS}px ${token.paddingSM}px`, }, [`${componentCls}-content`]: { width: token.pickerPanelCellWidth * 7, th: { width: token.pickerPanelCellWidth, }, }, }, // ==================== Datetime Panel ==================== '&-datetime-panel': { display: 'flex', [`${componentCls}-time-panel`]: { borderInlineStart: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorBorder}`, }, [`${componentCls}-date-panel, ${componentCls}-time-panel`]: { transition: `opacity ${token.motionDurationSlow}`, }, // Keyboard '&-active': { [`${componentCls}-date-panel, ${componentCls}-time-panel`]: { opacity: 0.3, '&-active': { opacity: 1, }, }, }, }, // ====================== Time Panel ====================== '&-time-panel': { width: 'auto', minWidth: 'auto', direction: 'ltr', [`${componentCls}-content`]: { display: 'flex', flex: 'auto', height: token.pickerTimePanelColumnHeight, }, '&-column': { flex: '1 0 auto', width: token.pickerTimePanelColumnWidth, margin: 0, padding: 0, overflowY: 'hidden', textAlign: 'start', listStyle: 'none', transition: `background ${token.motionDurationSlow}`, '&::after': { display: 'block', height: token.pickerTimePanelColumnHeight - token.pickerTimePanelCellHeight, content: '""', [`${componentCls}-datetime-panel &`]: { height: token.pickerTimePanelColumnHeight - token.pickerPanelWithoutTimeCellHeight + 2 * token.controlLineWidth, }, }, '&:not(:first-child)': { borderInlineStart: `${token.controlLineWidth}px ${token.controlLineType} ${token.colorSplit}`, }, '&-active': { background: token.controlItemBgActive, // FIXME: fade(@calendar-item-active-bg, 20%) }, '&:hover': { overflowY: 'auto', }, '> li': { margin: 0, padding: 0, [`&${componentCls}-time-panel-cell`]: { [`${componentCls}-time-panel-cell-inner`]: { display: 'block', width: '100%', height: token.pickerTimePanelCellHeight, margin: 0, paddingBlock: 0, paddingInlineEnd: 0, paddingInlineStart: (token.pickerTimePanelColumnWidth - token.pickerTimePanelCellHeight) / 2, color: token.colorText, lineHeight: `${token.pickerTimePanelCellHeight}px`, borderRadius: 0, cursor: 'pointer', transition: `background ${token.motionDurationSlow}`, '&:hover': { background: token.controlItemBgHover, }, }, '&-selected': { [`${componentCls}-time-panel-cell-inner`]: { background: token.controlItemBgActive, }, }, '&-disabled': { [`${componentCls}-time-panel-cell-inner`]: { color: token.colorTextDisabled, background: 'transparent', cursor: 'not-allowed', }, }, }, }, }, }, }, }, }; }; const genPickerStatusStyle: GenerateStyle<PickerToken> = token => { const { componentCls } = token; return { [componentCls]: { '&-status-error&': { '&, &:not([disabled]):hover': { backgroundColor: token.colorBgComponent, borderColor: token.colorError, }, '&-focused, &:focus': { ...genActiveStyle( mergeToken<PickerToken>(token, { inputBorderActiveColor: token.colorError, inputBorderHoverColor: token.colorError, colorPrimaryOutline: token.colorErrorOutline, }), ), }, }, '&-status-warning&': { '&, &:not([disabled]):hover': { backgroundColor: token.colorBgComponent, borderColor: token.colorWarning, }, '&-focused, &:focus': { ...genActiveStyle( mergeToken<PickerToken>(token, { inputBorderActiveColor: token.colorWarning, inputBorderHoverColor: token.colorWarning, colorPrimaryOutline: token.colorWarningOutline, }), ), }, }, }, }; }; // ============================== Export ============================== export default genComponentStyleHook( 'DatePicker', (token, { hashId }) => { const pickerToken = mergeToken<PickerToken>(initInputToken<FullToken<'DatePicker'>>(token), { arrowWidth: 8 * Math.sqrt(2), pickerCellInnerCls: `${token.componentCls}-cell-inner`, hashId, }); return [ genPickerStyle(pickerToken), genPanelStyle(pickerToken), genPickerStatusStyle(pickerToken), ]; }, token => ({ zIndexDropdown: token.zIndexPopup + 50, pickerTextHeight: 40, pickerPanelCellWidth: 36, pickerPanelCellHeight: 24, pickerDateHoverRangeBorderColor: new TinyColor(token.colorPrimary).lighten(20).toRgbString(), pickerBasicCellHoverWithRangeColor: new TinyColor(token.colorPrimary).lighten(35).toRgbString(), pickerPanelWithoutTimeCellHeight: 66, pickerTimePanelColumnHeight: 224, pickerTimePanelColumnWidth: 56, pickerTimePanelCellHeight: 28, }), );
components/date-picker/style/index.tsx
1
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00023951369803398848, 0.00017324976215604693, 0.00016304844757542014, 0.00017302794731222093, 0.000006917980954312952 ]
{ "id": 6, "code_window": [ " \"IE 11\",\n", " \"not IE 10\"\n", " ],\n", " \"dependencies\": {\n", " \"@ant-design/colors\": \"^6.0.0\",\n", " \"@ant-design/cssinjs\": \"^0.0.0-alpha.26\",\n", " \"@ant-design/icons\": \"^4.7.0\",\n", " \"@ant-design/react-slick\": \"~0.28.1\",\n", " \"@babel/runtime\": \"^7.12.5\",\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " \"@ant-design/cssinjs\": \"^0.0.0-alpha.27\",\n" ], "file_path": "package.json", "type": "replace", "edit_start_line_idx": 117 }
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('tag');
components/tag/__tests__/demo-extend.test.ts
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017292075790464878, 0.00017292075790464878, 0.00017292075790464878, 0.00017292075790464878, 0 ]
{ "id": 6, "code_window": [ " \"IE 11\",\n", " \"not IE 10\"\n", " ],\n", " \"dependencies\": {\n", " \"@ant-design/colors\": \"^6.0.0\",\n", " \"@ant-design/cssinjs\": \"^0.0.0-alpha.26\",\n", " \"@ant-design/icons\": \"^4.7.0\",\n", " \"@ant-design/react-slick\": \"~0.28.1\",\n", " \"@babel/runtime\": \"^7.12.5\",\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " \"@ant-design/cssinjs\": \"^0.0.0-alpha.27\",\n" ], "file_path": "package.json", "type": "replace", "edit_start_line_idx": 117 }
--- order: 0 title: zh-CN: 受控模式 en-US: Controlled mode --- ## zh-CN 受控的 Segmented。 ## en-US Controlled Segmented. ```jsx import React, { useState } from 'react'; import { Segmented } from 'antd'; const Demo: React.FC = () => { const [value, setValue] = useState('Map'); return ( <Segmented options={['Map', 'Transit', 'Satellite']} value={value} onChange={e => setValue(e.target.value)} /> ); }; ReactDOM.render(<Demo />, mountNode); ```
components/segmented/demo/controlled.md
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017483849660493433, 0.00017293158452957869, 0.0001682792790234089, 0.000174304295796901, 0.0000027145269996253774 ]
{ "id": 6, "code_window": [ " \"IE 11\",\n", " \"not IE 10\"\n", " ],\n", " \"dependencies\": {\n", " \"@ant-design/colors\": \"^6.0.0\",\n", " \"@ant-design/cssinjs\": \"^0.0.0-alpha.26\",\n", " \"@ant-design/icons\": \"^4.7.0\",\n", " \"@ant-design/react-slick\": \"~0.28.1\",\n", " \"@babel/runtime\": \"^7.12.5\",\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " \"@ant-design/cssinjs\": \"^0.0.0-alpha.27\",\n" ], "file_path": "package.json", "type": "replace", "edit_start_line_idx": 117 }
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('card');
components/card/__tests__/demo-extend.test.ts
0
https://github.com/ant-design/ant-design/commit/acb21e1848ba086b75860d2a383e8b022e50fe46
[ 0.00017405091784894466, 0.00017405091784894466, 0.00017405091784894466, 0.00017405091784894466, 0 ]
{ "id": 0, "code_window": [ "| `prometheusConfigOverhaulAuth` | Update the Prometheus configuration page with the new auth component | Yes |\n", "| `alertingInsights` | Show the new alerting insights landing page | Yes |\n", "| `cloudWatchWildCardDimensionValues` | Fetches dimension values from CloudWatch to correctly label wildcard dimensions | Yes |\n", "\n", "## Preview feature toggles\n", "\n", "| Feature toggle name | Description |\n", "| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ], "after_edit": [ "| `displayAnonymousStats` | Enables anonymous stats to be shown in the UI for Grafana | Yes |\n" ], "file_path": "docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md", "type": "add", "edit_start_line_idx": 53 }
--- aliases: - /docs/grafana/latest/setup-grafana/configure-grafana/feature-toggles/ description: Learn about feature toggles, which you can enable or disable. title: Configure feature toggles weight: 150 --- <!-- DO NOT EDIT THIS PAGE, it is machine generated by running the test in --> <!-- https://github.com/grafana/grafana/blob/main/pkg/services/featuremgmt/toggles_gen_test.go#L19 --> # Configure feature toggles You use feature toggles, also known as feature flags, to enable or disable features in Grafana. You can turn on feature toggles to try out new functionality in development or test environments. This page contains a list of available feature toggles. To learn how to turn on feature toggles, refer to our [Configure Grafana documentation]({{< relref "../_index.md#feature_toggles" >}}). Feature toggles are also available to Grafana Cloud Advanced customers. If you use Grafana Cloud Advanced, you can open a support ticket and specify the feature toggles and stack for which you want them enabled. ## Feature toggles Some features are enabled by default. You can disable these feature by setting the feature flag to "false" in the configuration. | Feature toggle name | Description | Enabled by default | | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | | `disableEnvelopeEncryption` | Disable envelope encryption (emergency only) | | | `publicDashboards` | Enables public access to dashboards | Yes | | `featureHighlights` | Highlight Grafana Enterprise features | | | `exploreContentOutline` | Content outline sidebar | Yes | | `newVizTooltips` | New visualizations tooltips UX | | | `dataConnectionsConsole` | Enables a new top-level page called Connections. This page is an experiment that provides a better experience when you install and configure data sources and other plugins. | Yes | | `cloudWatchCrossAccountQuerying` | Enables cross-account querying in CloudWatch datasources | Yes | | `redshiftAsyncQueryDataSupport` | Enable async query data support for Redshift | Yes | | `athenaAsyncQueryDataSupport` | Enable async query data support for Athena | Yes | | `nestedFolderPicker` | Enables the new folder picker to work with nested folders. Requires the nestedFolders feature toggle | Yes | | `accessTokenExpirationCheck` | Enable OAuth access_token expiration check and token refresh using the refresh_token | | | `emptyDashboardPage` | Enable the redesigned user interface of a dashboard page that includes no panels | Yes | | `disablePrometheusExemplarSampling` | Disable Prometheus exemplar sampling | | | `logsContextDatasourceUi` | Allow datasource to provide custom UI for context view | Yes | | `lokiQuerySplitting` | Split large interval queries into subqueries with smaller time intervals | Yes | | `prometheusMetricEncyclopedia` | Adds the metrics explorer component to the Prometheus query builder as an option in metric select | Yes | | `influxdbBackendMigration` | Query InfluxDB InfluxQL without the proxy | Yes | | `clientTokenRotation` | Replaces the current in-request token rotation so that the client initiates the rotation | Yes | | `prometheusDataplane` | Changes responses to from Prometheus to be compliant with the dataplane specification. In particular, when this feature toggle is active, the numeric `Field.Name` is set from 'Value' to the value of the `__name__` label. | Yes | | `lokiMetricDataplane` | Changes metric responses from Loki to be compliant with the dataplane specification. | Yes | | `dataplaneFrontendFallback` | Support dataplane contract field name change for transformations and field name matchers where the name is different | Yes | | `useCachingService` | When active, the new query and resource caching implementation using a wire service inject replaces the previous middleware implementation. | Yes | | `enableElasticsearchBackendQuerying` | Enable the processing of queries and responses in the Elasticsearch data source through backend | Yes | | `advancedDataSourcePicker` | Enable a new data source picker with contextual information, recently used order and advanced mode | Yes | | `cloudWatchLogsMonacoEditor` | Enables the Monaco editor for CloudWatch Logs queries | Yes | | `recordedQueriesMulti` | Enables writing multiple items from a single query within Recorded Queries | Yes | | `transformationsRedesign` | Enables the transformations redesign | Yes | | `prometheusConfigOverhaulAuth` | Update the Prometheus configuration page with the new auth component | Yes | | `alertingInsights` | Show the new alerting insights landing page | Yes | | `cloudWatchWildCardDimensionValues` | Fetches dimension values from CloudWatch to correctly label wildcard dimensions | Yes | ## Preview feature toggles | Feature toggle name | Description | | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `panelTitleSearch` | Search for dashboards using panel title | | `migrationLocking` | Lock database during migrations | | `correlations` | Correlations page | | `autoMigrateOldPanels` | Migrate old angular panels to supported versions (graph, table-old, worldmap, etc) | | `disableAngular` | Dynamic flag to disable angular at runtime. The preferred method is to set `angular_support_enabled` to `false` in the [security] settings, which allows you to change the state at runtime. | | `grpcServer` | Run the GRPC server | | `accessControlOnCall` | Access control primitives for OnCall | | `nestedFolders` | Enable folder nesting | | `alertingNoNormalState` | Stop maintaining state of alerts that are not firing | | `renderAuthJWT` | Uses JWT-based auth for rendering instead of relying on remote cache | | `refactorVariablesTimeRange` | Refactor time range variables flow to reduce number of API calls made when query variables are chained | | `faroDatasourceSelector` | Enable the data source selector within the Frontend Apps section of the Frontend Observability | | `enableDatagridEditing` | Enables the edit functionality in the datagrid panel | | `sqlDatasourceDatabaseSelection` | Enables previous SQL data source dataset dropdown behavior | | `awsAsyncQueryCaching` | Enable caching for async queries for Redshift and Athena. Requires that the `useCachingService` feature toggle is enabled and the datasource has caching and async query support enabled | | `splitScopes` | Support faster dashboard and folder search by splitting permission scopes into parts | | `dashgpt` | Enable AI powered features in dashboards | | `reportingRetries` | Enables rendering retries for the reporting feature | | `transformationsVariableSupport` | Allows using variables in transformations | | `cloudWatchBatchQueries` | Runs CloudWatch metrics queries as separate batches | ## Experimental feature toggles These features are early in their development lifecycle and so are not yet supported in Grafana Cloud. Experimental features might be changed or removed without prior notice. | Feature toggle name | Description | | ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `live-service-web-worker` | This will use a webworker thread to processes events rather than the main thread | | `queryOverLive` | Use Grafana Live WebSocket to execute backend queries | | `lokiExperimentalStreaming` | Support new streaming approach for loki (prototype, needs special loki build) | | `storage` | Configurable storage for dashboards, datasources, and resources | | `datasourceQueryMultiStatus` | Introduce HTTP 207 Multi Status for api/ds/query | | `traceToMetrics` | Enable trace to metrics links | | `canvasPanelNesting` | Allow elements nesting | | `scenes` | Experimental framework to build interactive dashboards | | `disableSecretsCompatibility` | Disable duplicated secret storage in legacy tables | | `logRequestsInstrumentedAsUnknown` | Logs the path for requests that are instrumented as unknown | | `dockedMegaMenu` | Enable support for a persistent (docked) navigation menu | | `cloudwatchNewRegionsHandler` | Refactor of /regions endpoint, no user-facing changes | | `showDashboardValidationWarnings` | Show warnings when dashboards do not validate against the schema | | `mysqlAnsiQuotes` | Use double quotes to escape keyword in a MySQL query | | `alertingBacktesting` | Rule backtesting API for alerting | | `editPanelCSVDragAndDrop` | Enables drag and drop for CSV and Excel files | | `lokiQuerySplittingConfig` | Give users the option to configure split durations for Loki queries | | `individualCookiePreferences` | Support overriding cookie preferences per user | | `influxqlStreamingParser` | Enable streaming JSON parser for InfluxDB datasource InfluxQL query language | | `lokiLogsDataplane` | Changes logs responses from Loki to be compliant with the dataplane specification. | | `disableSSEDataplane` | Disables dataplane specific processing in server side expressions. | | `alertStateHistoryLokiSecondary` | Enable Grafana to write alert state history to an external Loki instance in addition to Grafana annotations. | | `alertStateHistoryLokiPrimary` | Enable a remote Loki instance as the primary source for state history reads. | | `alertStateHistoryLokiOnly` | Disable Grafana alerts from emitting annotations when a remote Loki instance is available. | | `unifiedRequestLog` | Writes error logs to the request logger | | `extraThemes` | Enables extra themes | | `lokiPredefinedOperations` | Adds predefined query operations to Loki query editor | | `pluginsFrontendSandbox` | Enables the plugins frontend sandbox | | `dashboardEmbed` | Allow embedding dashboard for external use in Code editors | | `frontendSandboxMonitorOnly` | Enables monitor only in the plugin frontend sandbox (if enabled) | | `lokiFormatQuery` | Enables the ability to format Loki queries | | `exploreScrollableLogsContainer` | Improves the scrolling behavior of logs in Explore | | `pluginsDynamicAngularDetectionPatterns` | Enables fetching Angular detection patterns for plugins from GCOM and fallback to hardcoded ones | | `vizAndWidgetSplit` | Split panels between visualizations and widgets | | `prometheusIncrementalQueryInstrumentation` | Adds RudderStack events to incremental queries | | `logsExploreTableVisualisation` | A table visualisation for logs in Explore | | `awsDatasourcesTempCredentials` | Support temporary security credentials in AWS plugins for Grafana Cloud customers | | `mlExpressions` | Enable support for Machine Learning in server-side expressions | | `traceQLStreaming` | Enables response streaming of TraceQL queries of the Tempo data source | | `metricsSummary` | Enables metrics summary queries in the Tempo data source | | `grafanaAPIServer` | Enable Kubernetes API Server for Grafana resources | | `grafanaAPIServerWithExperimentalAPIs` | Register experimental APIs with the k8s API server | | `featureToggleAdminPage` | Enable admin page for managing feature toggles from the Grafana front-end | | `traceToProfiles` | Enables linking between traces and profiles | | `tracesEmbeddedFlameGraph` | Enables embedding a flame graph in traces | | `permissionsFilterRemoveSubquery` | Alternative permission filter implementation that does not use subqueries for fetching the dashboard folder | | `influxdbSqlSupport` | Enable InfluxDB SQL query language support with new querying UI | | `angularDeprecationUI` | Display new Angular deprecation-related UI features | | `sseGroupByDatasource` | Send query to the same datasource in a single request when using server side expressions | | `requestInstrumentationStatusSource` | Include a status source label for request metrics and logs | | `libraryPanelRBAC` | Enables RBAC support for library panels | | `wargamesTesting` | Placeholder feature flag for internal testing | | `externalCorePlugins` | Allow core plugins to be loaded as external | | `pluginsAPIMetrics` | Sends metrics of public grafana packages usage by plugins | | `httpSLOLevels` | Adds SLO level to http request metrics | | `panelMonitoring` | Enables panel monitoring through logs and measurements | | `enableNativeHTTPHistogram` | Enables native HTTP Histograms | | `formatString` | Enable format string transformer | | `kubernetesPlaylists` | Use the kubernetes API in the frontend for playlists, and route /api/playlist requests to k8s | | `kubernetesSnapshots` | Use the kubernetes API in the frontend to support playlists | | `recoveryThreshold` | Enables feature recovery threshold (aka hysteresis) for threshold server-side expression | | `lokiStructuredMetadata` | Enables the loki data source to request structured metadata from the Loki server | | `teamHttpHeaders` | Enables datasources to apply team headers to the client requests | | `awsDatasourcesNewFormStyling` | Applies new form styling for configuration and query editors in AWS plugins | | `cachingOptimizeSerializationMemoryUsage` | If enabled, the caching backend gradually serializes query responses for the cache, comparing against the configured `[caching]max_value_mb` value as it goes. This can can help prevent Grafana from running out of memory while attempting to cache very large query responses. | | `pluginsInstrumentationStatusSource` | Include a status source label for plugin request metrics and logs | | `costManagementUi` | Toggles the display of the cost management ui plugin | | `managedPluginsInstall` | Install managed plugins directly from plugins catalog | | `prometheusPromQAIL` | Prometheus and AI/ML to assist users in creating a query | | `addFieldFromCalculationStatFunctions` | Add cumulative and window functions to the add field from calculation transformation | | `alertmanagerRemoteSecondary` | Enable Grafana to sync configuration and state with a remote Alertmanager. | | `alertmanagerRemotePrimary` | Enable Grafana to have a remote Alertmanager instance as the primary Alertmanager. | | `alertmanagerRemoteOnly` | Disable the internal Alertmanager and only use the external one defined. | | `annotationPermissionUpdate` | Separate annotation permissions from dashboard permissions to allow for more granular control. | | `extractFieldsNameDeduplication` | Make sure extracted field names are unique in the dataframe | | `dashboardSceneForViewers` | Enables dashboard rendering using Scenes for viewer roles | | `dashboardScene` | Enables dashboard rendering using scenes for all roles | | `logsInfiniteScrolling` | Enables infinite scrolling for the Logs panel in Explore and Dashboards | | `flameGraphItemCollapsing` | Allow collapsing of flame graph items | | `logRowsPopoverMenu` | Enable filtering menu displayed when text of a log line is selected | | `pluginsSkipHostEnvVars` | Disables passing host environment variable to plugin processes | | `regressionTransformation` | Enables regression analysis transformation | | `displayAnonymousStats` | Enables anonymous stats to be shown in the UI for Grafana | ## Development feature toggles The following toggles require explicitly setting Grafana's [app mode]({{< relref "../_index.md#app_mode" >}}) to 'development' before you can enable this feature toggle. These features tend to be experimental. | Feature toggle name | Description | | ------------------------------------- | -------------------------------------------------------------------------------------------- | | `unifiedStorage` | SQL-based k8s storage | | `externalServiceAuth` | Starts an OAuth2 authentication provider for external services | | `grafanaAPIServerEnsureKubectlAccess` | Start an additional https handler and write kubectl options | | `idForwarding` | Generate signed id token for identity that can be forwarded to plugins and external services | | `externalServiceAccounts` | Automatic service account and token setup for plugins | | `panelTitleSearchInV1` | Enable searching for dashboards using panel title in search v1 | | `ssoSettingsApi` | Enables the SSO settings API |
docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md
1
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.005566382315009832, 0.005566382315009832, 0.005566382315009832, 0.005566382315009832, 0 ]
{ "id": 0, "code_window": [ "| `prometheusConfigOverhaulAuth` | Update the Prometheus configuration page with the new auth component | Yes |\n", "| `alertingInsights` | Show the new alerting insights landing page | Yes |\n", "| `cloudWatchWildCardDimensionValues` | Fetches dimension values from CloudWatch to correctly label wildcard dimensions | Yes |\n", "\n", "## Preview feature toggles\n", "\n", "| Feature toggle name | Description |\n", "| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ], "after_edit": [ "| `displayAnonymousStats` | Enables anonymous stats to be shown in the UI for Grafana | Yes |\n" ], "file_path": "docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md", "type": "add", "edit_start_line_idx": 53 }
import { v4 as uuidv4 } from 'uuid'; const MATCH_ID_INDEX = 2; const SVG_ID_INSERT_POS = 5; export const getSvgStyle = (svgCode: string) => { const svgStyle = svgCode.match(new RegExp('<style type="text/css">([\\s\\S]*?)<\\/style>')); return svgStyle ? svgStyle[0] : null; }; export const getSvgId = (svgCode: string) => { return svgCode.match(new RegExp('<svg.*id\\s*=\\s*([\'"])(.*?)\\1'))?.[MATCH_ID_INDEX]; }; export const svgStyleCleanup = (svgCode: string) => { let svgId = getSvgId(svgCode); if (!svgId) { svgId = `x${uuidv4()}`; const pos = svgCode.indexOf('<svg') + SVG_ID_INSERT_POS; svgCode = svgCode.substring(0, pos) + `id="${svgId}" ` + svgCode.substring(pos); } let svgStyle = getSvgStyle(svgCode); if (svgStyle) { let replacedId = svgStyle.replace(/(#(.*?))?\./g, `#${svgId} .`); svgCode = svgCode.replace(svgStyle, replacedId); } return svgCode; };
public/app/core/components/SVG/utils.ts
0
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.005566384177654982, 0.005566384177654982, 0.005566384177654982, 0.005566384177654982, 0 ]
{ "id": 0, "code_window": [ "| `prometheusConfigOverhaulAuth` | Update the Prometheus configuration page with the new auth component | Yes |\n", "| `alertingInsights` | Show the new alerting insights landing page | Yes |\n", "| `cloudWatchWildCardDimensionValues` | Fetches dimension values from CloudWatch to correctly label wildcard dimensions | Yes |\n", "\n", "## Preview feature toggles\n", "\n", "| Feature toggle name | Description |\n", "| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ], "after_edit": [ "| `displayAnonymousStats` | Enables anonymous stats to be shown in the UI for Grafana | Yes |\n" ], "file_path": "docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md", "type": "add", "edit_start_line_idx": 53 }
package plugindef import ( "regexp" "strings" "github.com/grafana/thema" ) thema.#Lineage name: "plugindef" schemas: [{ version: [0, 0] schema: { // Unique name of the plugin. If the plugin is published on // grafana.com, then the plugin `id` has to follow the naming // conventions. id: string & strings.MinRunes(1) id: =~"^([0-9a-z]+\\-([0-9a-z]+\\-)?(\(strings.Join([ for t in _types {t}], "|"))))|(alertGroups|alertlist|annolist|barchart|bargauge|candlestick|canvas|dashlist|debug|datagrid|gauge|geomap|gettingstarted|graph|heatmap|histogram|icon|live|logs|news|nodeGraph|piechart|pluginlist|stat|state-timeline|status-history|table|table-old|text|timeseries|trend|traces|welcome|xychart|alertmanager|cloudwatch|dashboard|elasticsearch|grafana|grafana-azure-monitor-datasource|graphite|influxdb|jaeger|loki|mixed|mssql|mysql|opentsdb|postgres|prometheus|stackdriver|tempo|grafana-testdata-datasource|zipkin|phlare|parca)$" // An alias is useful when migrating from one plugin id to another (rebranding etc) // This should be used sparingly, and is currently only supported though a hardcoded checklist aliasIDs?: [...string] // Human-readable name of the plugin that is shown to the user in // the UI. name: string // The set of all plugin types. This hidden field exists solely // so that the set can be string-interpolated into other fields. _types: ["app", "datasource", "panel", "renderer", "secretsmanager"] // type indicates which type of Grafana plugin this is, of the defined // set of Grafana plugin types. type: or(_types) // IncludeType is a string identifier of a plugin include type, which is // a superset of plugin types. #IncludeType: type | "dashboard" | "page" // Metadata about the plugin info: #Info // Metadata about a Grafana plugin. Some fields are used on the plugins // page in Grafana and others on grafana.com, if the plugin is published. #Info: { // Information about the plugin author author?: { // Author's name name?: string // Author's name email?: string // Link to author's website url?: string } // Build information build?: #BuildInfo // Description of plugin. Used on the plugins page in Grafana and // for search on grafana.com. description?: string // Array of plugin keywords. Used for search on grafana.com. keywords: [...string] // should be this, but CUE to openapi converter screws this up // by inserting a non-concrete default. // keywords: [string, ...string] // An array of link objects to be displayed on this plugin's // project page in the form `{name: 'foo', url: // 'http://example.com'}` links?: [...{ name?: string url?: string }] // SVG images that are used as plugin icons logos?: { // Link to the "small" version of the plugin logo, which must be // an SVG image. "Large" and "small" logos can be the same image. small: string // Link to the "large" version of the plugin logo, which must be // an SVG image. "Large" and "small" logos can be the same image. large: string } // An array of screenshot objects in the form `{name: 'bar', path: // 'img/screenshot.png'}` screenshots?: [...{ name?: string path?: string }] // Date when this plugin was built updated?: =~"^(\\d{4}-\\d{2}-\\d{2}|\\%TODAY\\%)$" // Project version of this commit, e.g. `6.7.x` version?: =~"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)|(\\%VERSION\\%)$" } #BuildInfo: { // Time when the plugin was built, as a Unix timestamp time?: int64 repo?: string // Git branch the plugin was built from branch?: string // Git hash of the commit the plugin was built from hash?: string number?: int64 // GitHub pull request the plugin was built from pr?: int32 } // Dependency information related to Grafana and other plugins dependencies: #Dependencies #Dependencies: { // (Deprecated) Required Grafana version for this plugin, e.g. // `6.x.x 7.x.x` to denote plugin requires Grafana v6.x.x or // v7.x.x. grafanaVersion?: =~"^([0-9]+)(\\.[0-9x]+)?(\\.[0-9x])?$" // Required Grafana version for this plugin. Validated using // https://github.com/npm/node-semver. grafanaDependency?: =~"^(<=|>=|<|>|=|~|\\^)?([0-9]+)(\\.[0-9x\\*]+)(\\.[0-9x\\*]+)?(\\s(<=|>=|<|=>)?([0-9]+)(\\.[0-9x]+)(\\.[0-9x]+))?(\\-[0-9]+)?$" // An array of required plugins on which this plugin depends plugins?: [...#Dependency] } // Dependency describes another plugin on which a plugin depends. // The id refers to the plugin package identifier, as given on // the grafana.com plugin marketplace. #Dependency: { id: =~"^[0-9a-z]+\\-([0-9a-z]+\\-)?(app|panel|datasource)$" type: "app" | "datasource" | "panel" name: string version: string ... } // Schema definition for the plugin.json file. Used primarily for schema validation. $schema?: string // For data source plugins, if the plugin supports alerting. Requires `backend` to be set to `true`. alerting?: bool // For data source plugins, if the plugin supports annotation // queries. annotations?: bool // Set to true for app plugins that should be enabled and pinned to the navigation bar in all orgs. autoEnabled?: bool // If the plugin has a backend component. backend?: bool // [internal only] Indicates whether the plugin is developed and shipped as part // of Grafana. Also known as a 'core plugin'. builtIn: bool | *false // Plugin category used on the Add data source page. category?: "tsdb" | "logging" | "cloud" | "tracing" | "profiling" | "sql" | "enterprise" | "iot" | "other" // Grafana Enterprise specific features. enterpriseFeatures?: { // Enable/Disable health diagnostics errors. Requires Grafana // >=7.5.5. healthDiagnosticsErrors?: bool | *false ... } // The first part of the file name of the backend component // executable. There can be multiple executables built for // different operating system and architecture. Grafana will // check for executables named `<executable>_<$GOOS>_<lower case // $GOARCH><.exe for Windows>`, e.g. `plugin_linux_amd64`. // Combination of $GOOS and $GOARCH can be found here: // https://golang.org/doc/install/source#environment. executable?: string // [internal only] Excludes the plugin from listings in Grafana's UI. Only // allowed for `builtIn` plugins. hideFromList: bool | *false // Resources to include in plugin. includes?: [...#Include] // A resource to be included in a plugin. #Include: { // Unique identifier of the included resource uid?: string type: #IncludeType name?: string // (Legacy) The Angular component to use for a page. component?: string // The minimum role a user must have to see this page in the navigation menu. role?: "Admin" | "Editor" | "Viewer" // RBAC action the user must have to access the route action?: string // Used for app plugins. path?: string // Add the include to the navigation menu. addToNav?: bool // Page or dashboard when user clicks the icon in the side menu. defaultNav?: bool // Icon to use in the side menu. For information on available // icon, refer to [Icons // Overview](https://developers.grafana.com/ui/latest/index.html?path=/story/docs-overview-icon--icons-overview). icon?: string ... } // For data source plugins, if the plugin supports logs. It may be used to filter logs only features. logs?: bool // For data source plugins, if the plugin supports metric queries. // Used to enable the plugin in the panel editor. metrics?: bool // FIXME there appears to be a bug in thema that prevents this from working. Maybe it'd // help to refer to it with an alias, but thema can't support using current list syntax. // syntax (fixed by grafana/thema#82). Either way, for now, pascalName gets populated in Go. let sani = (strings.ToTitle(regexp.ReplaceAllLiteral("[^a-zA-Z]+", name, ""))) // [internal only] The PascalCase name for the plugin. Used for creating machine-friendly // identifiers, typically in code generation. // // If not provided, defaults to name, but title-cased and sanitized (only // alphabetical characters allowed). pascalName: string & =~"^([A-Z][a-zA-Z]{1,62})$" | *sani // Initialize plugin on startup. By default, the plugin // initializes on first use. preload?: bool // For data source plugins. There is a query options section in // the plugin's query editor and these options can be turned on // if needed. queryOptions?: { // For data source plugins. If the `max data points` option should // be shown in the query options section in the query editor. maxDataPoints?: bool // For data source plugins. If the `min interval` option should be // shown in the query options section in the query editor. minInterval?: bool // For data source plugins. If the `cache timeout` option should // be shown in the query options section in the query editor. cacheTimeout?: bool } // Routes is a list of proxy routes, if any. For datasource plugins only. routes?: [...#Route] // For panel plugins. Hides the query editor. skipDataQuery?: bool // Marks a plugin as a pre-release. state?: #ReleaseState // ReleaseState indicates release maturity state of a plugin. #ReleaseState: "alpha" | "beta" | "deprecated" | *"stable" // For data source plugins, if the plugin supports streaming. Used in Explore to start live streaming. streaming?: bool // For data source plugins, if the plugin supports tracing. Used for example to link logs (e.g. Loki logs) with tracing plugins. tracing?: bool // Optional list of RBAC RoleRegistrations. // Describes and organizes the default permissions associated with any of the Grafana basic roles, // which characterizes what viewers, editors, admins, or grafana admins can do on the plugin. // The Admin basic role inherits its default permissions from the Editor basic role which in turn // inherits them from the Viewer basic role. roles?: [...#RoleRegistration] // RoleRegistration describes an RBAC role and its assignments to basic roles. // It organizes related RBAC permissions on the plugin into a role and defines which basic roles // will get them by default. // Example: the role 'Schedules Reader' bundles permissions to view all schedules of the plugin // which will be granted to Admins by default. #RoleRegistration: { // RBAC role definition to bundle related RBAC permissions on the plugin. role: #Role // Default assignment of the role to Grafana basic roles (Viewer, Editor, Admin, Grafana Admin) // The Admin basic role inherits its default permissions from the Editor basic role which in turn // inherits them from the Viewer basic role. grants: [...#BasicRole] } // Role describes an RBAC role which allows grouping multiple related permissions on the plugin, // each of which has an action and an optional scope. // Example: the role 'Schedules Reader' bundles permissions to view all schedules of the plugin. #Role: { name: string name: =~"^([A-Z][0-9A-Za-z ]+)$" description: string permissions: [...#Permission] } // Permission describes an RBAC permission on the plugin. A permission has an action and an optional // scope. // Example: action: 'test-app.schedules:read', scope: 'test-app.schedules:*' #Permission: { action: string scope?: string } // BasicRole is a Grafana basic role, which can be 'Viewer', 'Editor', 'Admin' or 'Grafana Admin'. // With RBAC, the Admin basic role inherits its default permissions from the Editor basic role which // in turn inherits them from the Viewer basic role. #BasicRole: "Grafana Admin" | "Admin" | "Editor" | "Viewer" // Header describes an HTTP header that is forwarded with a proxied request for // a plugin route. #Header: { name: string content: string } // URLParam describes query string parameters for // a url in a plugin route #URLParam: { name: string content: string } // A proxy route used in datasource plugins for plugin authentication // and adding headers to HTTP requests made by the plugin. // For more information, refer to [Authentication for data source // plugins](https://grafana.com/developers/plugin-tools/create-a-plugin/extend-a-plugin/add-authentication-for-data-source-plugins). #Route: { // For data source plugins. The route path that is replaced by the // route URL field when proxying the call. path?: string // For data source plugins. Route method matches the HTTP verb // like GET or POST. Multiple methods can be provided as a // comma-separated list. method?: string // For data source plugins. Route URL is where the request is // proxied to. url?: string urlParams?: [...#URLParam] reqSignedIn?: bool reqRole?: string // For data source plugins. Route headers adds HTTP headers to the // proxied request. headers?: [...#Header] // For data source plugins. Route headers set the body content and // length to the proxied request. body?: { ... } // For data source plugins. Token authentication section used with // an OAuth API. tokenAuth?: #TokenAuth // For data source plugins. Token authentication section used with // an JWT OAuth API. jwtTokenAuth?: #JWTTokenAuth } // TODO docs #TokenAuth: { // URL to fetch the authentication token. url?: string // The list of scopes that your application should be granted // access to. scopes?: [...string] // Parameters for the token authentication request. params: [string]: string } // TODO docs // TODO should this really be separate from TokenAuth? #JWTTokenAuth: { // URL to fetch the JWT token. url: string // The list of scopes that your application should be granted // access to. scopes: [...string] // Parameters for the JWT token authentication request. params: [string]: string } // Identity and Access Management information. // Allows the plugin to define the permissions it requires to have on Grafana. iam: #IAM // IAM allows the plugin to get a service account with tailored permissions and a token // (or to use the client_credentials grant if the token provider is the OAuth2 Server) #IAM: { // Permissions are the permissions that the external service needs its associated service account to have. permissions?: [...#Permission] // Impersonation describes the permissions that the external service will have on behalf of the user // This is only available with the OAuth2 Server impersonation?: #Impersonation } #Impersonation: { // Groups allows the service to list the impersonated user's teams. // Defaults to true. groups?: bool // Permissions are the permissions that the external service needs when impersonating a user. // The intersection of this set with the impersonated user's permission guarantees that the client will not // gain more privileges than the impersonated user has. permissions?: [...#Permission] } } }] lenses: []
pkg/plugins/plugindef/plugindef.cue
0
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.005566384177654982, 0.005566379055380821, 0.005566376261413097, 0.005566376261413097, 3.582319330064365e-9 ]
{ "id": 0, "code_window": [ "| `prometheusConfigOverhaulAuth` | Update the Prometheus configuration page with the new auth component | Yes |\n", "| `alertingInsights` | Show the new alerting insights landing page | Yes |\n", "| `cloudWatchWildCardDimensionValues` | Fetches dimension values from CloudWatch to correctly label wildcard dimensions | Yes |\n", "\n", "## Preview feature toggles\n", "\n", "| Feature toggle name | Description |\n", "| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ], "after_edit": [ "| `displayAnonymousStats` | Enables anonymous stats to be shown in the UI for Grafana | Yes |\n" ], "file_path": "docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md", "type": "add", "edit_start_line_idx": 53 }
import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { cloneDeep, defaultsDeep } from 'lodash'; import React from 'react'; import { CoreApp } from '@grafana/data'; import { QueryEditorMode } from 'app/plugins/datasource/prometheus/querybuilder/shared/types'; import { createLokiDatasource } from '../mocks'; import { EXPLAIN_LABEL_FILTER_CONTENT } from '../querybuilder/components/LokiQueryBuilderExplained'; import { LokiQuery, LokiQueryType } from '../types'; import { LokiQueryEditor } from './LokiQueryEditor'; import { LokiQueryEditorProps } from './types'; jest.mock('@grafana/runtime', () => { return { ...jest.requireActual('@grafana/runtime'), reportInteraction: jest.fn(), }; }); // We need to mock this because it seems jest has problem importing monaco in tests jest.mock('./monaco-query-field/MonacoQueryFieldWrapper', () => { return { MonacoQueryFieldWrapper: () => { return 'MonacoQueryFieldWrapper'; }, }; }); jest.mock('app/core/store', () => { return { get() { return undefined; }, set() {}, getObject(key: string, defaultValue: unknown) { return defaultValue; }, }; }); const defaultQuery = { refId: 'A', expr: '{label1="foo", label2="bar"}', }; const datasource = createLokiDatasource(); jest.spyOn(datasource.languageProvider, 'fetchLabels').mockResolvedValue([]); jest.spyOn(datasource, 'getDataSamples').mockResolvedValue([]); const defaultProps = { datasource, query: defaultQuery, onRunQuery: () => {}, onChange: () => {}, }; describe('LokiQueryEditorSelector', () => { it('shows code editor if expr and nothing else', async () => { // We opt for showing code editor for queries created before this feature was added render(<LokiQueryEditor {...defaultProps} />); await expectCodeEditor(); }); it('shows builder if new query', async () => { render( <LokiQueryEditor {...defaultProps} query={{ refId: 'A', expr: '', }} /> ); await expectBuilder(); }); it('shows code editor when code mode is set', async () => { renderWithMode(QueryEditorMode.Code); await expectCodeEditor(); }); it('shows builder when builder mode is set', async () => { renderWithMode(QueryEditorMode.Builder); await expectBuilder(); }); it('shows Run Query button in Dashboards', async () => { renderWithProps({}, { app: CoreApp.Dashboard }); await expectRunQueryButton(); }); it('hides Run Query button in Explore', async () => { renderWithProps({}, { app: CoreApp.Explore }); await expectCodeEditor(); expectNoRunQueryButton(); }); it('hides Run Query button in Correlations Page', async () => { renderWithProps({}, { app: CoreApp.Correlations }); await expectCodeEditor(); expectNoRunQueryButton(); }); it('shows Run Queries button in Dashboards when multiple queries', async () => { renderWithProps({}, { app: CoreApp.Dashboard, queries: [defaultQuery, defaultQuery] }); await expectRunQueriesButton(); }); it('changes to builder mode', async () => { const { onChange } = renderWithMode(QueryEditorMode.Code); await expectCodeEditor(); await switchToMode(QueryEditorMode.Builder); expect(onChange).toBeCalledWith({ refId: 'A', expr: defaultQuery.expr, queryType: LokiQueryType.Range, editorMode: QueryEditorMode.Builder, }); }); it('Should show the query by default', async () => { renderWithProps({ editorMode: QueryEditorMode.Builder, expr: '{job="grafana"}', }); const selector = await screen.findByLabelText('selector'); expect(selector).toBeInTheDocument(); expect(selector.textContent).toBe('{job="grafana"}'); }); it('Can enable explain', async () => { renderWithMode(QueryEditorMode.Builder); expect(screen.queryByText(EXPLAIN_LABEL_FILTER_CONTENT)).not.toBeInTheDocument(); await userEvent.click(screen.getByLabelText('Explain query')); expect(await screen.findByText(EXPLAIN_LABEL_FILTER_CONTENT)).toBeInTheDocument(); }); it('changes to code mode', async () => { const { onChange } = renderWithMode(QueryEditorMode.Builder); await expectBuilder(); await switchToMode(QueryEditorMode.Code); expect(onChange).toBeCalledWith({ refId: 'A', expr: defaultQuery.expr, queryType: LokiQueryType.Range, editorMode: QueryEditorMode.Code, }); }); it('parses query when changing to builder mode', async () => { const { rerender } = renderWithProps({ refId: 'A', expr: 'rate({instance="host.docker.internal:3000"}[$__interval])', editorMode: QueryEditorMode.Code, }); await expectCodeEditor(); await switchToMode(QueryEditorMode.Builder); rerender( <LokiQueryEditor {...defaultProps} query={{ refId: 'A', expr: 'rate({instance="host.docker.internal:3000"}[$__interval])', editorMode: QueryEditorMode.Builder, }} /> ); await screen.findByText('host.docker.internal:3000'); expect(screen.getByText('Rate')).toBeInTheDocument(); expect(screen.getByText('$__interval')).toBeInTheDocument(); }); it('renders the label browser button', async () => { renderWithMode(QueryEditorMode.Code); expect(await screen.findByTestId('label-browser-button')).toBeInTheDocument(); }); }); function renderWithMode(mode: QueryEditorMode) { return renderWithProps({ editorMode: mode }); } function renderWithProps(overrides?: Partial<LokiQuery>, componentProps: Partial<LokiQueryEditorProps> = {}) { const query = defaultsDeep(overrides ?? {}, cloneDeep(defaultQuery)); const onChange = jest.fn(); const allProps = { ...defaultProps, ...componentProps }; const stuff = render(<LokiQueryEditor {...allProps} query={query} onChange={onChange} />); return { onChange, ...stuff }; } async function expectCodeEditor() { expect(await screen.findByText('MonacoQueryFieldWrapper')).toBeInTheDocument(); } async function expectBuilder() { expect(await screen.findByText('Label filters')).toBeInTheDocument(); } async function expectRunQueriesButton() { expect(await screen.findByRole('button', { name: /run queries/i })).toBeInTheDocument(); } async function expectRunQueryButton() { expect(await screen.findByRole('button', { name: /run query/i })).toBeInTheDocument(); } function expectNoRunQueryButton() { expect(screen.queryByRole('button', { name: /run query/i })).not.toBeInTheDocument(); } async function switchToMode(mode: QueryEditorMode) { const label = { [QueryEditorMode.Code]: /Code/, [QueryEditorMode.Builder]: /Builder/, }[mode]; const switchEl = screen.getByLabelText(label); await userEvent.click(switchEl); }
public/app/plugins/datasource/loki/components/LokiQueryEditor.test.tsx
0
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.005566382315009832, 0.005566381849348545, 0.005566382315009832, 0.005566382315009832, 4.656612873077393e-10 ]
{ "id": 1, "code_window": [ "| `logsInfiniteScrolling` | Enables infinite scrolling for the Logs panel in Explore and Dashboards |\n", "| `flameGraphItemCollapsing` | Allow collapsing of flame graph items |\n", "| `logRowsPopoverMenu` | Enable filtering menu displayed when text of a log line is selected |\n", "| `pluginsSkipHostEnvVars` | Disables passing host environment variable to plugin processes |\n", "| `regressionTransformation` | Enables regression analysis transformation |\n", "| `displayAnonymousStats` | Enables anonymous stats to be shown in the UI for Grafana |\n", "\n", "## Development feature toggles\n", "\n", "The following toggles require explicitly setting Grafana's [app mode]({{< relref \"../_index.md#app_mode\" >}}) to 'development' before you can enable this feature toggle. These features tend to be experimental.\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ], "after_edit": [], "file_path": "docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md", "type": "replace", "edit_start_line_idx": 168 }
--- aliases: - /docs/grafana/latest/setup-grafana/configure-grafana/feature-toggles/ description: Learn about feature toggles, which you can enable or disable. title: Configure feature toggles weight: 150 --- <!-- DO NOT EDIT THIS PAGE, it is machine generated by running the test in --> <!-- https://github.com/grafana/grafana/blob/main/pkg/services/featuremgmt/toggles_gen_test.go#L19 --> # Configure feature toggles You use feature toggles, also known as feature flags, to enable or disable features in Grafana. You can turn on feature toggles to try out new functionality in development or test environments. This page contains a list of available feature toggles. To learn how to turn on feature toggles, refer to our [Configure Grafana documentation]({{< relref "../_index.md#feature_toggles" >}}). Feature toggles are also available to Grafana Cloud Advanced customers. If you use Grafana Cloud Advanced, you can open a support ticket and specify the feature toggles and stack for which you want them enabled. ## Feature toggles Some features are enabled by default. You can disable these feature by setting the feature flag to "false" in the configuration. | Feature toggle name | Description | Enabled by default | | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | | `disableEnvelopeEncryption` | Disable envelope encryption (emergency only) | | | `publicDashboards` | Enables public access to dashboards | Yes | | `featureHighlights` | Highlight Grafana Enterprise features | | | `exploreContentOutline` | Content outline sidebar | Yes | | `newVizTooltips` | New visualizations tooltips UX | | | `dataConnectionsConsole` | Enables a new top-level page called Connections. This page is an experiment that provides a better experience when you install and configure data sources and other plugins. | Yes | | `cloudWatchCrossAccountQuerying` | Enables cross-account querying in CloudWatch datasources | Yes | | `redshiftAsyncQueryDataSupport` | Enable async query data support for Redshift | Yes | | `athenaAsyncQueryDataSupport` | Enable async query data support for Athena | Yes | | `nestedFolderPicker` | Enables the new folder picker to work with nested folders. Requires the nestedFolders feature toggle | Yes | | `accessTokenExpirationCheck` | Enable OAuth access_token expiration check and token refresh using the refresh_token | | | `emptyDashboardPage` | Enable the redesigned user interface of a dashboard page that includes no panels | Yes | | `disablePrometheusExemplarSampling` | Disable Prometheus exemplar sampling | | | `logsContextDatasourceUi` | Allow datasource to provide custom UI for context view | Yes | | `lokiQuerySplitting` | Split large interval queries into subqueries with smaller time intervals | Yes | | `prometheusMetricEncyclopedia` | Adds the metrics explorer component to the Prometheus query builder as an option in metric select | Yes | | `influxdbBackendMigration` | Query InfluxDB InfluxQL without the proxy | Yes | | `clientTokenRotation` | Replaces the current in-request token rotation so that the client initiates the rotation | Yes | | `prometheusDataplane` | Changes responses to from Prometheus to be compliant with the dataplane specification. In particular, when this feature toggle is active, the numeric `Field.Name` is set from 'Value' to the value of the `__name__` label. | Yes | | `lokiMetricDataplane` | Changes metric responses from Loki to be compliant with the dataplane specification. | Yes | | `dataplaneFrontendFallback` | Support dataplane contract field name change for transformations and field name matchers where the name is different | Yes | | `useCachingService` | When active, the new query and resource caching implementation using a wire service inject replaces the previous middleware implementation. | Yes | | `enableElasticsearchBackendQuerying` | Enable the processing of queries and responses in the Elasticsearch data source through backend | Yes | | `advancedDataSourcePicker` | Enable a new data source picker with contextual information, recently used order and advanced mode | Yes | | `cloudWatchLogsMonacoEditor` | Enables the Monaco editor for CloudWatch Logs queries | Yes | | `recordedQueriesMulti` | Enables writing multiple items from a single query within Recorded Queries | Yes | | `transformationsRedesign` | Enables the transformations redesign | Yes | | `prometheusConfigOverhaulAuth` | Update the Prometheus configuration page with the new auth component | Yes | | `alertingInsights` | Show the new alerting insights landing page | Yes | | `cloudWatchWildCardDimensionValues` | Fetches dimension values from CloudWatch to correctly label wildcard dimensions | Yes | ## Preview feature toggles | Feature toggle name | Description | | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `panelTitleSearch` | Search for dashboards using panel title | | `migrationLocking` | Lock database during migrations | | `correlations` | Correlations page | | `autoMigrateOldPanels` | Migrate old angular panels to supported versions (graph, table-old, worldmap, etc) | | `disableAngular` | Dynamic flag to disable angular at runtime. The preferred method is to set `angular_support_enabled` to `false` in the [security] settings, which allows you to change the state at runtime. | | `grpcServer` | Run the GRPC server | | `accessControlOnCall` | Access control primitives for OnCall | | `nestedFolders` | Enable folder nesting | | `alertingNoNormalState` | Stop maintaining state of alerts that are not firing | | `renderAuthJWT` | Uses JWT-based auth for rendering instead of relying on remote cache | | `refactorVariablesTimeRange` | Refactor time range variables flow to reduce number of API calls made when query variables are chained | | `faroDatasourceSelector` | Enable the data source selector within the Frontend Apps section of the Frontend Observability | | `enableDatagridEditing` | Enables the edit functionality in the datagrid panel | | `sqlDatasourceDatabaseSelection` | Enables previous SQL data source dataset dropdown behavior | | `awsAsyncQueryCaching` | Enable caching for async queries for Redshift and Athena. Requires that the `useCachingService` feature toggle is enabled and the datasource has caching and async query support enabled | | `splitScopes` | Support faster dashboard and folder search by splitting permission scopes into parts | | `dashgpt` | Enable AI powered features in dashboards | | `reportingRetries` | Enables rendering retries for the reporting feature | | `transformationsVariableSupport` | Allows using variables in transformations | | `cloudWatchBatchQueries` | Runs CloudWatch metrics queries as separate batches | ## Experimental feature toggles These features are early in their development lifecycle and so are not yet supported in Grafana Cloud. Experimental features might be changed or removed without prior notice. | Feature toggle name | Description | | ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `live-service-web-worker` | This will use a webworker thread to processes events rather than the main thread | | `queryOverLive` | Use Grafana Live WebSocket to execute backend queries | | `lokiExperimentalStreaming` | Support new streaming approach for loki (prototype, needs special loki build) | | `storage` | Configurable storage for dashboards, datasources, and resources | | `datasourceQueryMultiStatus` | Introduce HTTP 207 Multi Status for api/ds/query | | `traceToMetrics` | Enable trace to metrics links | | `canvasPanelNesting` | Allow elements nesting | | `scenes` | Experimental framework to build interactive dashboards | | `disableSecretsCompatibility` | Disable duplicated secret storage in legacy tables | | `logRequestsInstrumentedAsUnknown` | Logs the path for requests that are instrumented as unknown | | `dockedMegaMenu` | Enable support for a persistent (docked) navigation menu | | `cloudwatchNewRegionsHandler` | Refactor of /regions endpoint, no user-facing changes | | `showDashboardValidationWarnings` | Show warnings when dashboards do not validate against the schema | | `mysqlAnsiQuotes` | Use double quotes to escape keyword in a MySQL query | | `alertingBacktesting` | Rule backtesting API for alerting | | `editPanelCSVDragAndDrop` | Enables drag and drop for CSV and Excel files | | `lokiQuerySplittingConfig` | Give users the option to configure split durations for Loki queries | | `individualCookiePreferences` | Support overriding cookie preferences per user | | `influxqlStreamingParser` | Enable streaming JSON parser for InfluxDB datasource InfluxQL query language | | `lokiLogsDataplane` | Changes logs responses from Loki to be compliant with the dataplane specification. | | `disableSSEDataplane` | Disables dataplane specific processing in server side expressions. | | `alertStateHistoryLokiSecondary` | Enable Grafana to write alert state history to an external Loki instance in addition to Grafana annotations. | | `alertStateHistoryLokiPrimary` | Enable a remote Loki instance as the primary source for state history reads. | | `alertStateHistoryLokiOnly` | Disable Grafana alerts from emitting annotations when a remote Loki instance is available. | | `unifiedRequestLog` | Writes error logs to the request logger | | `extraThemes` | Enables extra themes | | `lokiPredefinedOperations` | Adds predefined query operations to Loki query editor | | `pluginsFrontendSandbox` | Enables the plugins frontend sandbox | | `dashboardEmbed` | Allow embedding dashboard for external use in Code editors | | `frontendSandboxMonitorOnly` | Enables monitor only in the plugin frontend sandbox (if enabled) | | `lokiFormatQuery` | Enables the ability to format Loki queries | | `exploreScrollableLogsContainer` | Improves the scrolling behavior of logs in Explore | | `pluginsDynamicAngularDetectionPatterns` | Enables fetching Angular detection patterns for plugins from GCOM and fallback to hardcoded ones | | `vizAndWidgetSplit` | Split panels between visualizations and widgets | | `prometheusIncrementalQueryInstrumentation` | Adds RudderStack events to incremental queries | | `logsExploreTableVisualisation` | A table visualisation for logs in Explore | | `awsDatasourcesTempCredentials` | Support temporary security credentials in AWS plugins for Grafana Cloud customers | | `mlExpressions` | Enable support for Machine Learning in server-side expressions | | `traceQLStreaming` | Enables response streaming of TraceQL queries of the Tempo data source | | `metricsSummary` | Enables metrics summary queries in the Tempo data source | | `grafanaAPIServer` | Enable Kubernetes API Server for Grafana resources | | `grafanaAPIServerWithExperimentalAPIs` | Register experimental APIs with the k8s API server | | `featureToggleAdminPage` | Enable admin page for managing feature toggles from the Grafana front-end | | `traceToProfiles` | Enables linking between traces and profiles | | `tracesEmbeddedFlameGraph` | Enables embedding a flame graph in traces | | `permissionsFilterRemoveSubquery` | Alternative permission filter implementation that does not use subqueries for fetching the dashboard folder | | `influxdbSqlSupport` | Enable InfluxDB SQL query language support with new querying UI | | `angularDeprecationUI` | Display new Angular deprecation-related UI features | | `sseGroupByDatasource` | Send query to the same datasource in a single request when using server side expressions | | `requestInstrumentationStatusSource` | Include a status source label for request metrics and logs | | `libraryPanelRBAC` | Enables RBAC support for library panels | | `wargamesTesting` | Placeholder feature flag for internal testing | | `externalCorePlugins` | Allow core plugins to be loaded as external | | `pluginsAPIMetrics` | Sends metrics of public grafana packages usage by plugins | | `httpSLOLevels` | Adds SLO level to http request metrics | | `panelMonitoring` | Enables panel monitoring through logs and measurements | | `enableNativeHTTPHistogram` | Enables native HTTP Histograms | | `formatString` | Enable format string transformer | | `kubernetesPlaylists` | Use the kubernetes API in the frontend for playlists, and route /api/playlist requests to k8s | | `kubernetesSnapshots` | Use the kubernetes API in the frontend to support playlists | | `recoveryThreshold` | Enables feature recovery threshold (aka hysteresis) for threshold server-side expression | | `lokiStructuredMetadata` | Enables the loki data source to request structured metadata from the Loki server | | `teamHttpHeaders` | Enables datasources to apply team headers to the client requests | | `awsDatasourcesNewFormStyling` | Applies new form styling for configuration and query editors in AWS plugins | | `cachingOptimizeSerializationMemoryUsage` | If enabled, the caching backend gradually serializes query responses for the cache, comparing against the configured `[caching]max_value_mb` value as it goes. This can can help prevent Grafana from running out of memory while attempting to cache very large query responses. | | `pluginsInstrumentationStatusSource` | Include a status source label for plugin request metrics and logs | | `costManagementUi` | Toggles the display of the cost management ui plugin | | `managedPluginsInstall` | Install managed plugins directly from plugins catalog | | `prometheusPromQAIL` | Prometheus and AI/ML to assist users in creating a query | | `addFieldFromCalculationStatFunctions` | Add cumulative and window functions to the add field from calculation transformation | | `alertmanagerRemoteSecondary` | Enable Grafana to sync configuration and state with a remote Alertmanager. | | `alertmanagerRemotePrimary` | Enable Grafana to have a remote Alertmanager instance as the primary Alertmanager. | | `alertmanagerRemoteOnly` | Disable the internal Alertmanager and only use the external one defined. | | `annotationPermissionUpdate` | Separate annotation permissions from dashboard permissions to allow for more granular control. | | `extractFieldsNameDeduplication` | Make sure extracted field names are unique in the dataframe | | `dashboardSceneForViewers` | Enables dashboard rendering using Scenes for viewer roles | | `dashboardScene` | Enables dashboard rendering using scenes for all roles | | `logsInfiniteScrolling` | Enables infinite scrolling for the Logs panel in Explore and Dashboards | | `flameGraphItemCollapsing` | Allow collapsing of flame graph items | | `logRowsPopoverMenu` | Enable filtering menu displayed when text of a log line is selected | | `pluginsSkipHostEnvVars` | Disables passing host environment variable to plugin processes | | `regressionTransformation` | Enables regression analysis transformation | | `displayAnonymousStats` | Enables anonymous stats to be shown in the UI for Grafana | ## Development feature toggles The following toggles require explicitly setting Grafana's [app mode]({{< relref "../_index.md#app_mode" >}}) to 'development' before you can enable this feature toggle. These features tend to be experimental. | Feature toggle name | Description | | ------------------------------------- | -------------------------------------------------------------------------------------------- | | `unifiedStorage` | SQL-based k8s storage | | `externalServiceAuth` | Starts an OAuth2 authentication provider for external services | | `grafanaAPIServerEnsureKubectlAccess` | Start an additional https handler and write kubectl options | | `idForwarding` | Generate signed id token for identity that can be forwarded to plugins and external services | | `externalServiceAccounts` | Automatic service account and token setup for plugins | | `panelTitleSearchInV1` | Enable searching for dashboards using panel title in search v1 | | `ssoSettingsApi` | Enables the SSO settings API |
docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md
1
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.0014652375830337405, 0.0014652374666184187, 0.0014652375830337405, 0.0014652375830337405, 1.1641532182693481e-10 ]
{ "id": 1, "code_window": [ "| `logsInfiniteScrolling` | Enables infinite scrolling for the Logs panel in Explore and Dashboards |\n", "| `flameGraphItemCollapsing` | Allow collapsing of flame graph items |\n", "| `logRowsPopoverMenu` | Enable filtering menu displayed when text of a log line is selected |\n", "| `pluginsSkipHostEnvVars` | Disables passing host environment variable to plugin processes |\n", "| `regressionTransformation` | Enables regression analysis transformation |\n", "| `displayAnonymousStats` | Enables anonymous stats to be shown in the UI for Grafana |\n", "\n", "## Development feature toggles\n", "\n", "The following toggles require explicitly setting Grafana's [app mode]({{< relref \"../_index.md#app_mode\" >}}) to 'development' before you can enable this feature toggle. These features tend to be experimental.\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ], "after_edit": [], "file_path": "docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md", "type": "replace", "edit_start_line_idx": 168 }
import React from 'react'; import { QueryEditorHelpProps } from '@grafana/data'; import { PromQuery } from '../types'; const CHEAT_SHEET_ITEMS = [ { title: 'Request Rate', expression: 'rate(http_request_total[5m])', label: 'Given an HTTP request counter, this query calculates the per-second average request rate over the last 5 minutes.', }, { title: '95th Percentile of Request Latencies', expression: 'histogram_quantile(0.95, sum(rate(prometheus_http_request_duration_seconds_bucket[5m])) by (le))', label: 'Calculates the 95th percentile of HTTP request rate over 5 minute windows.', }, { title: 'Alerts Firing', expression: 'sort_desc(sum(sum_over_time(ALERTS{alertstate="firing"}[24h])) by (alertname))', label: 'Sums up the alerts that have been firing over the last 24 hours.', }, { title: 'Step', label: 'Defines the graph resolution using a duration format (15s, 1m, 3h, ...). Small steps create high-resolution graphs but can be slow over larger time ranges. Using a longer step lowers the resolution and smooths the graph by producing fewer datapoints. If no step is given the resolution is calculated automatically.', }, ]; const PromCheatSheet = (props: QueryEditorHelpProps<PromQuery>) => ( <div> <h2>PromQL Cheat Sheet</h2> {CHEAT_SHEET_ITEMS.map((item, index) => ( <div className="cheat-sheet-item" key={index}> <div className="cheat-sheet-item__title">{item.title}</div> {item.expression ? ( <button type="button" className="cheat-sheet-item__example" onClick={(e) => props.onClickExample({ refId: 'A', expr: item.expression })} > <code>{item.expression}</code> </button> ) : null} <div className="cheat-sheet-item__label">{item.label}</div> </div> ))} </div> ); export default PromCheatSheet;
public/app/plugins/datasource/prometheus/components/PromCheatSheet.tsx
0
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.001465239911340177, 0.001465239911340177, 0.001465239911340177, 0.001465239911340177, 0 ]
{ "id": 1, "code_window": [ "| `logsInfiniteScrolling` | Enables infinite scrolling for the Logs panel in Explore and Dashboards |\n", "| `flameGraphItemCollapsing` | Allow collapsing of flame graph items |\n", "| `logRowsPopoverMenu` | Enable filtering menu displayed when text of a log line is selected |\n", "| `pluginsSkipHostEnvVars` | Disables passing host environment variable to plugin processes |\n", "| `regressionTransformation` | Enables regression analysis transformation |\n", "| `displayAnonymousStats` | Enables anonymous stats to be shown in the UI for Grafana |\n", "\n", "## Development feature toggles\n", "\n", "The following toggles require explicitly setting Grafana's [app mode]({{< relref \"../_index.md#app_mode\" >}}) to 'development' before you can enable this feature toggle. These features tend to be experimental.\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ], "after_edit": [], "file_path": "docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md", "type": "replace", "edit_start_line_idx": 168 }
import { Meta, StoryFn } from '@storybook/react'; import React, { useState } from 'react'; import { Switch } from './Switch'; const meta: Meta<typeof Switch> = { title: 'Forms/Legacy/Switch', component: Switch, parameters: { controls: { exclude: ['className', 'labelClass', 'switchClass', 'onChange'], }, }, }; const SwitchWrapper: StoryFn<typeof Switch> = ({ label, ...args }) => { const [checked, setChecked] = useState(false); return <Switch {...args} label={label} checked={checked} onChange={() => setChecked(!checked)} />; }; export const Basic = SwitchWrapper.bind({}); Basic.args = { label: 'Label', tooltip: '', }; export default meta;
packages/grafana-ui/src/components/Forms/Legacy/Switch/Switch.internal.story.tsx
0
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.0014652375830337405, 0.0014652375830337405, 0.0014652375830337405, 0.0014652375830337405, 0 ]
{ "id": 1, "code_window": [ "| `logsInfiniteScrolling` | Enables infinite scrolling for the Logs panel in Explore and Dashboards |\n", "| `flameGraphItemCollapsing` | Allow collapsing of flame graph items |\n", "| `logRowsPopoverMenu` | Enable filtering menu displayed when text of a log line is selected |\n", "| `pluginsSkipHostEnvVars` | Disables passing host environment variable to plugin processes |\n", "| `regressionTransformation` | Enables regression analysis transformation |\n", "| `displayAnonymousStats` | Enables anonymous stats to be shown in the UI for Grafana |\n", "\n", "## Development feature toggles\n", "\n", "The following toggles require explicitly setting Grafana's [app mode]({{< relref \"../_index.md#app_mode\" >}}) to 'development' before you can enable this feature toggle. These features tend to be experimental.\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ], "after_edit": [], "file_path": "docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md", "type": "replace", "edit_start_line_idx": 168 }
import { css } from '@emotion/css'; import React, { ComponentType, useEffect } from 'react'; import { connect, ConnectedProps } from 'react-redux'; import { GrafanaTheme2 } from '@grafana/data'; import { selectors as e2eSelectors } from '@grafana/e2e-selectors/src'; import { LinkButton, RadioButtonGroup, useStyles2, FilterInput } from '@grafana/ui'; import { Page } from 'app/core/components/Page/Page'; import { contextSrv } from 'app/core/core'; import { AccessControlAction, StoreState, UserFilter } from '../../types'; import { UsersTable } from './Users/UsersTable'; import { changeFilter, changePage, changeQuery, changeSort, fetchUsers } from './state/actions'; export interface FilterProps { filters: UserFilter[]; onChange: (filter: UserFilter) => void; className?: string; } const extraFilters: Array<ComponentType<FilterProps>> = []; export const addExtraFilters = (filter: ComponentType<FilterProps>) => { extraFilters.push(filter); }; const selectors = e2eSelectors.pages.UserListPage.UserListAdminPage; const mapDispatchToProps = { fetchUsers, changeQuery, changePage, changeFilter, changeSort, }; const mapStateToProps = (state: StoreState) => ({ users: state.userListAdmin.users, query: state.userListAdmin.query, showPaging: state.userListAdmin.showPaging, totalPages: state.userListAdmin.totalPages, page: state.userListAdmin.page, filters: state.userListAdmin.filters, }); const connector = connect(mapStateToProps, mapDispatchToProps); interface OwnProps {} type Props = OwnProps & ConnectedProps<typeof connector>; const UserListAdminPageUnConnected = ({ fetchUsers, query, changeQuery, users, showPaging, changeFilter, filters, totalPages, page, changePage, changeSort, }: Props) => { const styles = useStyles2(getStyles); useEffect(() => { fetchUsers(); }, [fetchUsers]); return ( <Page.Contents> <div className={styles.actionBar} data-testid={selectors.container}> <div className={styles.row}> <FilterInput placeholder="Search user by login, email, or name." autoFocus={true} value={query} onChange={changeQuery} /> <RadioButtonGroup options={[ { label: 'All users', value: false }, { label: 'Active last 30 days', value: true }, ]} onChange={(value) => changeFilter({ name: 'activeLast30Days', value })} value={filters.find((f) => f.name === 'activeLast30Days')?.value} className={styles.filter} /> {extraFilters.map((FilterComponent, index) => ( <FilterComponent key={index} filters={filters} onChange={changeFilter} className={styles.filter} /> ))} {contextSrv.hasPermission(AccessControlAction.UsersCreate) && ( <LinkButton href="admin/users/create" variant="primary"> New user </LinkButton> )} </div> </div> <UsersTable users={users} showPaging={showPaging} totalPages={totalPages} onChangePage={changePage} currentPage={page} fetchData={changeSort} /> </Page.Contents> ); }; export const UserListAdminPageContent = connector(UserListAdminPageUnConnected); export function UserListAdminPage() { return ( <Page navId="global-users"> <UserListAdminPageContent /> </Page> ); } const getStyles = (theme: GrafanaTheme2) => { return { filter: css({ margin: theme.spacing(0, 1), [theme.breakpoints.down('sm')]: { margin: 0, }, }), actionBar: css({ marginBottom: theme.spacing(2), display: 'flex', alignItems: 'flex-start', gap: theme.spacing(2), [theme.breakpoints.down('sm')]: { flexWrap: 'wrap', }, }), row: css({ display: 'flex', alignItems: 'flex-start', textAlign: 'left', marginBottom: theme.spacing(0.5), flexGrow: 1, [theme.breakpoints.down('sm')]: { flexWrap: 'wrap', gap: theme.spacing(2), width: '100%', }, }), }; }; export default UserListAdminPage;
public/app/features/admin/UserListAdminPage.tsx
0
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.0014652363024652004, 0.0014652363024652004, 0.0014652363024652004, 0.0014652363024652004, 0 ]
{ "id": 2, "code_window": [ "\t\t\tCreated: time.Date(2023, time.November, 24, 12, 0, 0, 0, time.UTC),\n", "\t\t},\n", "\t\t{\n", "\t\t\tName: \"displayAnonymousStats\",\n", "\t\t\tDescription: \"Enables anonymous stats to be shown in the UI for Grafana\",\n", "\t\t\tStage: FeatureStageExperimental,\n", "\t\t\tFrontendOnly: true,\n", "\t\t\tOwner: identityAccessTeam,\n", "\t\t\tCreated: time.Date(2023, time.November, 29, 12, 0, 0, 0, time.UTC),\n", "\t\t},\n", "\t}\n", ")\n", "\n" ], "labels": [ "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ], "after_edit": [ "\t\t\tName: \"displayAnonymousStats\",\n", "\t\t\tDescription: \"Enables anonymous stats to be shown in the UI for Grafana\",\n", "\t\t\tStage: FeatureStageGeneralAvailability,\n", "\t\t\tFrontendOnly: true,\n", "\t\t\tOwner: identityAccessTeam,\n", "\t\t\tCreated: time.Date(2023, time.November, 29, 12, 0, 0, 0, time.UTC),\n", "\t\t\tAllowSelfServe: falsePtr,\n", "\t\t\tExpression: \"true\", // enabled by default\n" ], "file_path": "pkg/services/featuremgmt/registry.go", "type": "replace", "edit_start_line_idx": 1000 }
// To change feature flags, edit: // pkg/services/featuremgmt/registry.go // Then run tests in: // pkg/services/featuremgmt/toggles_gen_test.go // twice to generate and validate the feature flag files package featuremgmt import ( "time" ) var ( falsePtr = boolPtr(false) truePtr = boolPtr(true) // Register each toggle here standardFeatureFlags = []FeatureFlag{ { Name: "disableEnvelopeEncryption", Description: "Disable envelope encryption (emergency only)", Stage: FeatureStageGeneralAvailability, Owner: grafanaAsCodeSquad, HideFromAdminPage: true, AllowSelfServe: falsePtr, Created: time.Date(2022, time.May, 24, 12, 0, 0, 0, time.UTC), }, { Name: "live-service-web-worker", Description: "This will use a webworker thread to processes events rather than the main thread", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaAppPlatformSquad, Created: time.Date(2021, time.November, 9, 12, 0, 0, 0, time.UTC), }, { Name: "queryOverLive", Description: "Use Grafana Live WebSocket to execute backend queries", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaAppPlatformSquad, Created: time.Date(2022, time.January, 5, 12, 0, 0, 0, time.UTC), }, { Name: "panelTitleSearch", Description: "Search for dashboards using panel title", Stage: FeatureStagePublicPreview, Owner: grafanaAppPlatformSquad, HideFromAdminPage: true, Created: time.Date(2022, time.February, 15, 12, 0, 0, 0, time.UTC), }, { Name: "publicDashboards", Description: "Enables public access to dashboards", Stage: FeatureStageGeneralAvailability, Owner: grafanaSharingSquad, Expression: "true", // enabled by default AllowSelfServe: truePtr, Created: time.Date(2022, time.April, 7, 12, 0, 0, 0, time.UTC), }, { Name: "publicDashboardsEmailSharing", Description: "Enables public dashboard sharing to be restricted to only allowed emails", Stage: FeatureStagePublicPreview, RequiresLicense: true, Owner: grafanaSharingSquad, HideFromDocs: true, HideFromAdminPage: true, Created: time.Date(2022, time.December, 21, 12, 0, 0, 0, time.UTC), }, { Name: "lokiExperimentalStreaming", Description: "Support new streaming approach for loki (prototype, needs special loki build)", Stage: FeatureStageExperimental, Owner: grafanaObservabilityLogsSquad, Created: time.Date(2023, time.June, 19, 12, 0, 0, 0, time.UTC), }, { Name: "featureHighlights", Description: "Highlight Grafana Enterprise features", Stage: FeatureStageGeneralAvailability, Owner: grafanaAsCodeSquad, AllowSelfServe: truePtr, Created: time.Date(2022, time.February, 3, 12, 0, 0, 0, time.UTC), }, { Name: "migrationLocking", Description: "Lock database during migrations", Stage: FeatureStagePublicPreview, Owner: grafanaBackendPlatformSquad, Created: time.Date(2022, time.February, 15, 12, 0, 0, 0, time.UTC), }, { Name: "storage", Description: "Configurable storage for dashboards, datasources, and resources", Stage: FeatureStageExperimental, Owner: grafanaAppPlatformSquad, Created: time.Date(2022, time.March, 17, 12, 0, 0, 0, time.UTC), }, { Name: "correlations", Description: "Correlations page", Stage: FeatureStagePublicPreview, Owner: grafanaExploreSquad, Created: time.Date(2022, time.September, 16, 12, 0, 0, 0, time.UTC), }, { Name: "exploreContentOutline", Description: "Content outline sidebar", Stage: FeatureStageGeneralAvailability, Owner: grafanaExploreSquad, Expression: "true", // enabled by default FrontendOnly: true, AllowSelfServe: truePtr, Created: time.Date(2023, time.November, 3, 12, 0, 0, 0, time.UTC), }, { Name: "datasourceQueryMultiStatus", Description: "Introduce HTTP 207 Multi Status for api/ds/query", Stage: FeatureStageExperimental, Owner: grafanaPluginsPlatformSquad, Created: time.Date(2022, time.May, 3, 12, 0, 0, 0, time.UTC), }, { Name: "traceToMetrics", Description: "Enable trace to metrics links", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaObservabilityTracesAndProfilingSquad, Created: time.Date(2022, time.March, 7, 12, 0, 0, 0, time.UTC), }, { Name: "autoMigrateOldPanels", Description: "Migrate old angular panels to supported versions (graph, table-old, worldmap, etc)", Stage: FeatureStagePublicPreview, FrontendOnly: true, Owner: grafanaDatavizSquad, Created: time.Date(2022, time.June, 11, 12, 0, 0, 0, time.UTC), }, { Name: "disableAngular", Description: "Dynamic flag to disable angular at runtime. The preferred method is to set `angular_support_enabled` to `false` in the [security] settings, which allows you to change the state at runtime.", Stage: FeatureStagePublicPreview, FrontendOnly: true, Owner: grafanaDatavizSquad, HideFromAdminPage: true, Created: time.Date(2023, time.March, 23, 12, 0, 0, 0, time.UTC), }, { Name: "canvasPanelNesting", Description: "Allow elements nesting", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaDatavizSquad, HideFromAdminPage: true, Created: time.Date(2022, time.May, 31, 12, 0, 0, 0, time.UTC), }, { Name: "newVizTooltips", Description: "New visualizations tooltips UX", Stage: FeatureStageGeneralAvailability, FrontendOnly: true, Owner: grafanaDatavizSquad, AllowSelfServe: truePtr, Created: time.Date(2023, time.November, 3, 12, 0, 0, 0, time.UTC), }, { Name: "scenes", Description: "Experimental framework to build interactive dashboards", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaDashboardsSquad, Created: time.Date(2022, time.July, 7, 12, 0, 0, 0, time.UTC), }, { Name: "disableSecretsCompatibility", Description: "Disable duplicated secret storage in legacy tables", Stage: FeatureStageExperimental, RequiresRestart: true, Owner: hostedGrafanaTeam, Created: time.Date(2022, time.July, 13, 12, 0, 0, 0, time.UTC), }, { Name: "logRequestsInstrumentedAsUnknown", Description: "Logs the path for requests that are instrumented as unknown", Stage: FeatureStageExperimental, Owner: hostedGrafanaTeam, Created: time.Date(2022, time.June, 10, 12, 0, 0, 0, time.UTC), }, { Name: "dataConnectionsConsole", Description: "Enables a new top-level page called Connections. This page is an experiment that provides a better experience when you install and configure data sources and other plugins.", Stage: FeatureStageGeneralAvailability, Expression: "true", // turned on by default Owner: grafanaPluginsPlatformSquad, AllowSelfServe: truePtr, Created: time.Date(2022, time.June, 1, 12, 0, 0, 0, time.UTC), }, { // Some plugins rely on topnav feature flag being enabled, so we cannot remove this until we // can afford the breaking change, or we've detemined no one else is relying on it Name: "topnav", Description: "Enables topnav support in external plugins. The new Grafana navigation cannot be disabled.", Stage: FeatureStageDeprecated, Expression: "true", // enabled by default Owner: grafanaFrontendPlatformSquad, Created: time.Date(2022, time.June, 20, 12, 0, 0, 0, time.UTC), }, { Name: "dockedMegaMenu", Description: "Enable support for a persistent (docked) navigation menu", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaFrontendPlatformSquad, Created: time.Date(2023, time.September, 18, 12, 0, 0, 0, time.UTC), }, { Name: "grpcServer", Description: "Run the GRPC server", Stage: FeatureStagePublicPreview, Owner: grafanaAppPlatformSquad, HideFromAdminPage: true, Created: time.Date(2022, time.September, 27, 12, 0, 0, 0, time.UTC), }, { Name: "unifiedStorage", Description: "SQL-based k8s storage", Stage: FeatureStageExperimental, RequiresDevMode: true, RequiresRestart: true, // new SQL tables created Owner: grafanaAppPlatformSquad, Created: time.Date(2022, time.December, 1, 12, 0, 0, 0, time.UTC), }, { Name: "cloudWatchCrossAccountQuerying", Description: "Enables cross-account querying in CloudWatch datasources", Stage: FeatureStageGeneralAvailability, Expression: "true", // enabled by default Owner: awsDatasourcesSquad, AllowSelfServe: truePtr, Created: time.Date(2022, time.November, 28, 12, 0, 0, 0, time.UTC), }, { Name: "redshiftAsyncQueryDataSupport", Description: "Enable async query data support for Redshift", Stage: FeatureStageGeneralAvailability, Expression: "true", // enabled by default Owner: awsDatasourcesSquad, AllowSelfServe: falsePtr, Created: time.Date(2022, time.August, 27, 12, 0, 0, 0, time.UTC), }, { Name: "athenaAsyncQueryDataSupport", Description: "Enable async query data support for Athena", Stage: FeatureStageGeneralAvailability, Expression: "true", // enabled by default FrontendOnly: true, Owner: awsDatasourcesSquad, AllowSelfServe: falsePtr, Created: time.Date(2022, time.August, 27, 12, 0, 0, 0, time.UTC), }, { Name: "cloudwatchNewRegionsHandler", Description: "Refactor of /regions endpoint, no user-facing changes", Stage: FeatureStageExperimental, Owner: awsDatasourcesSquad, Created: time.Date(2023, time.September, 25, 12, 0, 0, 0, time.UTC), }, { Name: "showDashboardValidationWarnings", Description: "Show warnings when dashboards do not validate against the schema", Stage: FeatureStageExperimental, Owner: grafanaDashboardsSquad, Created: time.Date(2022, time.October, 14, 12, 0, 0, 0, time.UTC), }, { Name: "mysqlAnsiQuotes", Description: "Use double quotes to escape keyword in a MySQL query", Stage: FeatureStageExperimental, Owner: grafanaBackendPlatformSquad, Created: time.Date(2022, time.October, 12, 12, 0, 0, 0, time.UTC), }, { Name: "accessControlOnCall", Description: "Access control primitives for OnCall", Stage: FeatureStagePublicPreview, Owner: identityAccessTeam, HideFromAdminPage: true, Created: time.Date(2022, time.October, 19, 12, 0, 0, 0, time.UTC), }, { Name: "nestedFolders", Description: "Enable folder nesting", Stage: FeatureStagePublicPreview, Owner: grafanaBackendPlatformSquad, Created: time.Date(2022, time.October, 22, 12, 0, 0, 0, time.UTC), }, { Name: "nestedFolderPicker", Description: "Enables the new folder picker to work with nested folders. Requires the nestedFolders feature toggle", Stage: FeatureStageGeneralAvailability, Owner: grafanaFrontendPlatformSquad, FrontendOnly: true, Expression: "true", // enabled by default AllowSelfServe: truePtr, Created: time.Date(2023, time.July, 24, 12, 0, 0, 0, time.UTC), }, { Name: "accessTokenExpirationCheck", Description: "Enable OAuth access_token expiration check and token refresh using the refresh_token", Stage: FeatureStageGeneralAvailability, Owner: identityAccessTeam, AllowSelfServe: falsePtr, Created: time.Date(2022, time.November, 14, 12, 0, 0, 0, time.UTC), }, { Name: "emptyDashboardPage", Description: "Enable the redesigned user interface of a dashboard page that includes no panels", Stage: FeatureStageGeneralAvailability, FrontendOnly: true, Expression: "true", // enabled by default Owner: grafanaDashboardsSquad, AllowSelfServe: falsePtr, HideFromAdminPage: true, Created: time.Date(2023, time.March, 28, 12, 0, 0, 0, time.UTC), }, { Name: "disablePrometheusExemplarSampling", Description: "Disable Prometheus exemplar sampling", Stage: FeatureStageGeneralAvailability, Owner: grafanaObservabilityMetricsSquad, AllowSelfServe: truePtr, Created: time.Date(2022, time.December, 19, 12, 0, 0, 0, time.UTC), }, { Name: "alertingBacktesting", Description: "Rule backtesting API for alerting", Stage: FeatureStageExperimental, Owner: grafanaAlertingSquad, Created: time.Date(2022, time.October, 20, 12, 0, 0, 0, time.UTC), }, { Name: "editPanelCSVDragAndDrop", Description: "Enables drag and drop for CSV and Excel files", FrontendOnly: true, Stage: FeatureStageExperimental, Owner: grafanaBiSquad, Created: time.Date(2022, time.December, 20, 12, 0, 0, 0, time.UTC), }, { Name: "alertingNoNormalState", Description: "Stop maintaining state of alerts that are not firing", Stage: FeatureStagePublicPreview, RequiresRestart: false, Owner: grafanaAlertingSquad, HideFromAdminPage: true, Created: time.Date(2023, time.January, 14, 12, 0, 0, 0, time.UTC), }, { Name: "logsContextDatasourceUi", Description: "Allow datasource to provide custom UI for context view", Stage: FeatureStageGeneralAvailability, FrontendOnly: true, Owner: grafanaObservabilityLogsSquad, Expression: "true", // turned on by default AllowSelfServe: truePtr, Created: time.Date(2023, time.January, 27, 12, 0, 0, 0, time.UTC), }, { Name: "lokiQuerySplitting", Description: "Split large interval queries into subqueries with smaller time intervals", Stage: FeatureStageGeneralAvailability, FrontendOnly: true, Owner: grafanaObservabilityLogsSquad, Expression: "true", // turned on by default AllowSelfServe: truePtr, Created: time.Date(2023, time.February, 9, 12, 0, 0, 0, time.UTC), }, { Name: "lokiQuerySplittingConfig", Description: "Give users the option to configure split durations for Loki queries", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaObservabilityLogsSquad, Created: time.Date(2023, time.March, 20, 12, 0, 0, 0, time.UTC), }, { Name: "individualCookiePreferences", Description: "Support overriding cookie preferences per user", Stage: FeatureStageExperimental, Owner: grafanaBackendPlatformSquad, Created: time.Date(2023, time.February, 23, 12, 0, 0, 0, time.UTC), }, { Name: "prometheusMetricEncyclopedia", Description: "Adds the metrics explorer component to the Prometheus query builder as an option in metric select", Expression: "true", Stage: FeatureStageGeneralAvailability, FrontendOnly: true, Owner: grafanaObservabilityMetricsSquad, AllowSelfServe: truePtr, Created: time.Date(2023, time.March, 7, 12, 0, 0, 0, time.UTC), }, { Name: "influxdbBackendMigration", Description: "Query InfluxDB InfluxQL without the proxy", Stage: FeatureStageGeneralAvailability, FrontendOnly: true, Owner: grafanaObservabilityMetricsSquad, Expression: "true", // enabled by default AllowSelfServe: falsePtr, Created: time.Date(2023, time.March, 15, 12, 0, 0, 0, time.UTC), }, { Name: "influxqlStreamingParser", Description: "Enable streaming JSON parser for InfluxDB datasource InfluxQL query language", Stage: FeatureStageExperimental, Owner: grafanaObservabilityMetricsSquad, Created: time.Date(2023, time.November, 29, 12, 0, 0, 0, time.UTC), }, { Name: "clientTokenRotation", Description: "Replaces the current in-request token rotation so that the client initiates the rotation", Stage: FeatureStageGeneralAvailability, Expression: "true", Owner: identityAccessTeam, AllowSelfServe: falsePtr, Created: time.Date(2023, time.March, 23, 12, 0, 0, 0, time.UTC), }, { Name: "prometheusDataplane", Description: "Changes responses to from Prometheus to be compliant with the dataplane specification. In particular, when this feature toggle is active, the numeric `Field.Name` is set from 'Value' to the value of the `__name__` label.", Expression: "true", Stage: FeatureStageGeneralAvailability, Owner: grafanaObservabilityMetricsSquad, AllowSelfServe: truePtr, Created: time.Date(2023, time.March, 29, 12, 0, 0, 0, time.UTC), }, { Name: "lokiMetricDataplane", Description: "Changes metric responses from Loki to be compliant with the dataplane specification.", Stage: FeatureStageGeneralAvailability, Expression: "true", Owner: grafanaObservabilityLogsSquad, AllowSelfServe: truePtr, Created: time.Date(2023, time.April, 13, 12, 0, 0, 0, time.UTC), }, { Name: "lokiLogsDataplane", Description: "Changes logs responses from Loki to be compliant with the dataplane specification.", Stage: FeatureStageExperimental, Owner: grafanaObservabilityLogsSquad, Created: time.Date(2023, time.July, 13, 12, 0, 0, 0, time.UTC), }, { Name: "dataplaneFrontendFallback", Description: "Support dataplane contract field name change for transformations and field name matchers where the name is different", Stage: FeatureStageGeneralAvailability, FrontendOnly: true, Expression: "true", Owner: grafanaObservabilityMetricsSquad, AllowSelfServe: truePtr, Created: time.Date(2023, time.April, 24, 12, 0, 0, 0, time.UTC), }, { Name: "disableSSEDataplane", Description: "Disables dataplane specific processing in server side expressions.", Stage: FeatureStageExperimental, Owner: grafanaObservabilityMetricsSquad, Created: time.Date(2023, time.April, 24, 12, 0, 0, 0, time.UTC), }, { Name: "alertStateHistoryLokiSecondary", Description: "Enable Grafana to write alert state history to an external Loki instance in addition to Grafana annotations.", Stage: FeatureStageExperimental, Owner: grafanaAlertingSquad, Created: time.Date(2023, time.March, 30, 12, 0, 0, 0, time.UTC), }, { Name: "alertStateHistoryLokiPrimary", Description: "Enable a remote Loki instance as the primary source for state history reads.", Stage: FeatureStageExperimental, Owner: grafanaAlertingSquad, Created: time.Date(2023, time.March, 30, 12, 0, 0, 0, time.UTC), }, { Name: "alertStateHistoryLokiOnly", Description: "Disable Grafana alerts from emitting annotations when a remote Loki instance is available.", Stage: FeatureStageExperimental, Owner: grafanaAlertingSquad, Created: time.Date(2023, time.March, 30, 12, 0, 0, 0, time.UTC), }, { Name: "unifiedRequestLog", Description: "Writes error logs to the request logger", Stage: FeatureStageExperimental, Owner: grafanaBackendPlatformSquad, Created: time.Date(2023, time.March, 31, 12, 0, 0, 0, time.UTC), }, { Name: "renderAuthJWT", Description: "Uses JWT-based auth for rendering instead of relying on remote cache", Stage: FeatureStagePublicPreview, Owner: grafanaAsCodeSquad, HideFromAdminPage: true, Created: time.Date(2023, time.April, 3, 12, 0, 0, 0, time.UTC), }, { Name: "externalServiceAuth", Description: "Starts an OAuth2 authentication provider for external services", Stage: FeatureStageExperimental, RequiresDevMode: true, Owner: identityAccessTeam, Created: time.Date(2023, time.April, 11, 12, 0, 0, 0, time.UTC), }, { Name: "refactorVariablesTimeRange", Description: "Refactor time range variables flow to reduce number of API calls made when query variables are chained", Stage: FeatureStagePublicPreview, Owner: grafanaDashboardsSquad, HideFromAdminPage: true, // Non-feature, used to test out a bug fix that impacts the performance of template variables. Created: time.Date(2023, time.June, 6, 12, 0, 0, 0, time.UTC), }, { Name: "useCachingService", Description: "When active, the new query and resource caching implementation using a wire service inject replaces the previous middleware implementation.", Stage: FeatureStageGeneralAvailability, Owner: grafanaOperatorExperienceSquad, RequiresRestart: true, Expression: "true", // enabled by default AllowSelfServe: falsePtr, Created: time.Date(2023, time.April, 12, 12, 0, 0, 0, time.UTC), }, { Name: "enableElasticsearchBackendQuerying", Description: "Enable the processing of queries and responses in the Elasticsearch data source through backend", Stage: FeatureStageGeneralAvailability, Owner: grafanaObservabilityLogsSquad, Expression: "true", // enabled by default AllowSelfServe: truePtr, Created: time.Date(2023, time.April, 14, 12, 0, 0, 0, time.UTC), }, { Name: "advancedDataSourcePicker", Description: "Enable a new data source picker with contextual information, recently used order and advanced mode", Stage: FeatureStageGeneralAvailability, FrontendOnly: true, Expression: "true", // enabled by default Owner: grafanaDashboardsSquad, AllowSelfServe: falsePtr, HideFromAdminPage: true, Created: time.Date(2023, time.April, 14, 12, 0, 0, 0, time.UTC), }, { Name: "faroDatasourceSelector", Description: "Enable the data source selector within the Frontend Apps section of the Frontend Observability", Stage: FeatureStagePublicPreview, FrontendOnly: true, Owner: appO11ySquad, Created: time.Date(2023, time.May, 4, 12, 0, 0, 0, time.UTC), }, { Name: "enableDatagridEditing", Description: "Enables the edit functionality in the datagrid panel", FrontendOnly: true, Stage: FeatureStagePublicPreview, Owner: grafanaBiSquad, Created: time.Date(2023, time.April, 24, 12, 0, 0, 0, time.UTC), }, { Name: "extraThemes", Description: "Enables extra themes", FrontendOnly: true, Stage: FeatureStageExperimental, Owner: grafanaFrontendPlatformSquad, Created: time.Date(2023, time.May, 10, 12, 0, 0, 0, time.UTC), }, { Name: "lokiPredefinedOperations", Description: "Adds predefined query operations to Loki query editor", FrontendOnly: true, Stage: FeatureStageExperimental, Owner: grafanaObservabilityLogsSquad, Created: time.Date(2023, time.June, 2, 12, 0, 0, 0, time.UTC), }, { Name: "pluginsFrontendSandbox", Description: "Enables the plugins frontend sandbox", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaPluginsPlatformSquad, Created: time.Date(2023, time.June, 5, 12, 0, 0, 0, time.UTC), }, { Name: "dashboardEmbed", Description: "Allow embedding dashboard for external use in Code editors", FrontendOnly: true, Stage: FeatureStageExperimental, Owner: grafanaAsCodeSquad, Created: time.Date(2023, time.July, 6, 12, 0, 0, 0, time.UTC), }, { Name: "frontendSandboxMonitorOnly", Description: "Enables monitor only in the plugin frontend sandbox (if enabled)", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaPluginsPlatformSquad, Created: time.Date(2023, time.July, 5, 12, 0, 0, 0, time.UTC), }, { Name: "sqlDatasourceDatabaseSelection", Description: "Enables previous SQL data source dataset dropdown behavior", FrontendOnly: true, Stage: FeatureStagePublicPreview, Owner: grafanaBiSquad, HideFromAdminPage: true, Created: time.Date(2023, time.June, 6, 12, 0, 0, 0, time.UTC), }, { Name: "lokiFormatQuery", Description: "Enables the ability to format Loki queries", FrontendOnly: true, Stage: FeatureStageExperimental, Owner: grafanaObservabilityLogsSquad, Created: time.Date(2023, time.June, 21, 12, 0, 0, 0, time.UTC), }, { Name: "cloudWatchLogsMonacoEditor", Description: "Enables the Monaco editor for CloudWatch Logs queries", Stage: FeatureStageGeneralAvailability, FrontendOnly: true, Expression: "true", // enabled by default Owner: awsDatasourcesSquad, AllowSelfServe: truePtr, Created: time.Date(2023, time.June, 12, 12, 0, 0, 0, time.UTC), }, { Name: "exploreScrollableLogsContainer", Description: "Improves the scrolling behavior of logs in Explore", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaObservabilityLogsSquad, Created: time.Date(2023, time.June, 15, 12, 0, 0, 0, time.UTC), }, { Name: "recordedQueriesMulti", Description: "Enables writing multiple items from a single query within Recorded Queries", Stage: FeatureStageGeneralAvailability, Expression: "true", Owner: grafanaObservabilityMetricsSquad, AllowSelfServe: falsePtr, Created: time.Date(2023, time.June, 14, 12, 0, 0, 0, time.UTC), }, { Name: "pluginsDynamicAngularDetectionPatterns", Description: "Enables fetching Angular detection patterns for plugins from GCOM and fallback to hardcoded ones", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaPluginsPlatformSquad, Created: time.Date(2023, time.June, 26, 12, 0, 0, 0, time.UTC), }, { Name: "vizAndWidgetSplit", Description: "Split panels between visualizations and widgets", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaDashboardsSquad, Created: time.Date(2023, time.June, 27, 12, 0, 0, 0, time.UTC), }, { Name: "prometheusIncrementalQueryInstrumentation", Description: "Adds RudderStack events to incremental queries", FrontendOnly: true, Stage: FeatureStageExperimental, Owner: grafanaObservabilityMetricsSquad, Created: time.Date(2023, time.July, 5, 12, 0, 0, 0, time.UTC), }, { Name: "logsExploreTableVisualisation", Description: "A table visualisation for logs in Explore", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaObservabilityLogsSquad, Created: time.Date(2023, time.July, 12, 12, 0, 0, 0, time.UTC), }, { Name: "awsDatasourcesTempCredentials", Description: "Support temporary security credentials in AWS plugins for Grafana Cloud customers", Stage: FeatureStageExperimental, Owner: awsDatasourcesSquad, Created: time.Date(2023, time.July, 6, 12, 0, 0, 0, time.UTC), }, { Name: "transformationsRedesign", Description: "Enables the transformations redesign", Stage: FeatureStageGeneralAvailability, FrontendOnly: true, Expression: "true", // enabled by default Owner: grafanaObservabilityMetricsSquad, AllowSelfServe: truePtr, Created: time.Date(2023, time.July, 12, 12, 0, 0, 0, time.UTC), }, { Name: "mlExpressions", Description: "Enable support for Machine Learning in server-side expressions", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaAlertingSquad, Created: time.Date(2023, time.July, 13, 12, 0, 0, 0, time.UTC), }, { Name: "traceQLStreaming", Description: "Enables response streaming of TraceQL queries of the Tempo data source", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaObservabilityTracesAndProfilingSquad, Created: time.Date(2023, time.July, 26, 12, 0, 0, 0, time.UTC), }, { Name: "metricsSummary", Description: "Enables metrics summary queries in the Tempo data source", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaObservabilityTracesAndProfilingSquad, Created: time.Date(2023, time.August, 28, 12, 0, 0, 0, time.UTC), }, { Name: "grafanaAPIServer", Description: "Enable Kubernetes API Server for Grafana resources", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaAppPlatformSquad, Created: time.Date(2023, time.July, 14, 12, 0, 0, 0, time.UTC), }, { Name: "grafanaAPIServerWithExperimentalAPIs", Description: "Register experimental APIs with the k8s API server", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaAppPlatformSquad, Created: time.Date(2023, time.October, 6, 12, 0, 0, 0, time.UTC), }, { Name: "grafanaAPIServerEnsureKubectlAccess", Description: "Start an additional https handler and write kubectl options", Stage: FeatureStageExperimental, RequiresDevMode: true, RequiresRestart: true, Owner: grafanaAppPlatformSquad, Created: time.Date(2023, time.December, 6, 12, 0, 0, 0, time.UTC), }, { Name: "featureToggleAdminPage", Description: "Enable admin page for managing feature toggles from the Grafana front-end", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaOperatorExperienceSquad, RequiresRestart: true, Created: time.Date(2023, time.July, 18, 12, 0, 0, 0, time.UTC), }, { Name: "awsAsyncQueryCaching", Description: "Enable caching for async queries for Redshift and Athena. Requires that the `useCachingService` feature toggle is enabled and the datasource has caching and async query support enabled", Stage: FeatureStagePublicPreview, Owner: awsDatasourcesSquad, Created: time.Date(2023, time.July, 21, 12, 0, 0, 0, time.UTC), }, { Name: "splitScopes", Description: "Support faster dashboard and folder search by splitting permission scopes into parts", Stage: FeatureStagePublicPreview, FrontendOnly: false, Owner: identityAccessTeam, RequiresRestart: true, HideFromAdminPage: true, // This is internal work to speed up dashboard search, and is not ready for wider use Created: time.Date(2023, time.July, 21, 12, 0, 0, 0, time.UTC), }, { Name: "traceToProfiles", Description: "Enables linking between traces and profiles", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaObservabilityTracesAndProfilingSquad, Created: time.Date(2023, time.November, 1, 12, 0, 0, 0, time.UTC), }, { Name: "tracesEmbeddedFlameGraph", Description: "Enables embedding a flame graph in traces", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaObservabilityTracesAndProfilingSquad, Created: time.Date(2023, time.November, 2, 12, 0, 0, 0, time.UTC), }, { Name: "permissionsFilterRemoveSubquery", Description: "Alternative permission filter implementation that does not use subqueries for fetching the dashboard folder", Stage: FeatureStageExperimental, Owner: grafanaBackendPlatformSquad, Created: time.Date(2023, time.August, 2, 12, 0, 0, 0, time.UTC), }, { Name: "prometheusConfigOverhaulAuth", Description: "Update the Prometheus configuration page with the new auth component", Owner: grafanaObservabilityMetricsSquad, Stage: FeatureStageGeneralAvailability, Expression: "true", // on by default AllowSelfServe: falsePtr, Created: time.Date(2023, time.July, 21, 12, 0, 0, 0, time.UTC), }, { Name: "configurableSchedulerTick", Description: "Enable changing the scheduler base interval via configuration option unified_alerting.scheduler_tick_interval", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaAlertingSquad, RequiresRestart: true, HideFromDocs: true, Created: time.Date(2023, time.July, 26, 12, 0, 0, 0, time.UTC), }, { Name: "influxdbSqlSupport", Description: "Enable InfluxDB SQL query language support with new querying UI", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaObservabilityMetricsSquad, RequiresRestart: false, Created: time.Date(2023, time.August, 2, 12, 0, 0, 0, time.UTC), }, { Name: "alertingNoDataErrorExecution", Description: "Changes how Alerting state manager handles execution of NoData/Error", Stage: FeatureStagePrivatePreview, FrontendOnly: false, Owner: grafanaAlertingSquad, RequiresRestart: true, Enabled: true, Created: time.Date(2023, time.August, 15, 12, 0, 0, 0, time.UTC), }, { Name: "angularDeprecationUI", Description: "Display new Angular deprecation-related UI features", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaPluginsPlatformSquad, Created: time.Date(2023, time.August, 29, 12, 0, 0, 0, time.UTC), }, { Name: "dashgpt", Description: "Enable AI powered features in dashboards", Stage: FeatureStagePublicPreview, FrontendOnly: true, Owner: grafanaDashboardsSquad, Created: time.Date(2023, time.November, 17, 12, 0, 0, 0, time.UTC), }, { Name: "reportingRetries", Description: "Enables rendering retries for the reporting feature", Stage: FeatureStagePublicPreview, FrontendOnly: false, Owner: grafanaSharingSquad, RequiresRestart: true, Created: time.Date(2023, time.August, 31, 12, 0, 0, 0, time.UTC), }, { Name: "sseGroupByDatasource", Description: "Send query to the same datasource in a single request when using server side expressions", Stage: FeatureStageExperimental, Owner: grafanaObservabilityMetricsSquad, Created: time.Date(2023, time.September, 7, 12, 0, 0, 0, time.UTC), }, { Name: "requestInstrumentationStatusSource", Description: "Include a status source label for request metrics and logs", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaPluginsPlatformSquad, Created: time.Date(2023, time.September, 11, 12, 0, 0, 0, time.UTC), }, { Name: "libraryPanelRBAC", Description: "Enables RBAC support for library panels", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaDashboardsSquad, RequiresRestart: true, Created: time.Date(2023, time.October, 11, 12, 0, 0, 0, time.UTC), }, { Name: "lokiRunQueriesInParallel", Description: "Enables running Loki queries in parallel", Stage: FeatureStagePrivatePreview, FrontendOnly: false, Owner: grafanaObservabilityLogsSquad, Created: time.Date(2023, time.September, 19, 12, 0, 0, 0, time.UTC), }, { Name: "wargamesTesting", Description: "Placeholder feature flag for internal testing", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: hostedGrafanaTeam, Created: time.Date(2023, time.September, 13, 12, 0, 0, 0, time.UTC), }, { Name: "alertingInsights", Description: "Show the new alerting insights landing page", FrontendOnly: true, Stage: FeatureStageGeneralAvailability, Owner: grafanaAlertingSquad, Expression: "true", // enabled by default AllowSelfServe: falsePtr, HideFromAdminPage: true, // This is moving away from being a feature toggle. Created: time.Date(2023, time.September, 14, 12, 0, 0, 0, time.UTC), }, { Name: "externalCorePlugins", Description: "Allow core plugins to be loaded as external", Stage: FeatureStageExperimental, Owner: grafanaPluginsPlatformSquad, Created: time.Date(2023, time.September, 22, 12, 0, 0, 0, time.UTC), }, { Name: "pluginsAPIMetrics", Description: "Sends metrics of public grafana packages usage by plugins", FrontendOnly: true, Stage: FeatureStageExperimental, Owner: grafanaPluginsPlatformSquad, Created: time.Date(2023, time.September, 21, 12, 0, 0, 0, time.UTC), }, { Name: "httpSLOLevels", Description: "Adds SLO level to http request metrics", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: hostedGrafanaTeam, RequiresRestart: true, Created: time.Date(2023, time.September, 22, 12, 0, 0, 0, time.UTC), }, { Name: "idForwarding", Description: "Generate signed id token for identity that can be forwarded to plugins and external services", Stage: FeatureStageExperimental, Owner: identityAccessTeam, RequiresDevMode: true, Created: time.Date(2023, time.September, 25, 12, 0, 0, 0, time.UTC), }, { Name: "cloudWatchWildCardDimensionValues", Description: "Fetches dimension values from CloudWatch to correctly label wildcard dimensions", Stage: FeatureStageGeneralAvailability, Expression: "true", // enabled by default Owner: awsDatasourcesSquad, AllowSelfServe: truePtr, Created: time.Date(2023, time.September, 27, 12, 0, 0, 0, time.UTC), }, { Name: "externalServiceAccounts", Description: "Automatic service account and token setup for plugins", Stage: FeatureStageExperimental, RequiresDevMode: true, Owner: identityAccessTeam, Created: time.Date(2023, time.September, 28, 12, 0, 0, 0, time.UTC), }, { Name: "panelMonitoring", Description: "Enables panel monitoring through logs and measurements", Stage: FeatureStageExperimental, Owner: grafanaDatavizSquad, FrontendOnly: true, Created: time.Date(2023, time.October, 8, 12, 0, 0, 0, time.UTC), }, { Name: "enableNativeHTTPHistogram", Description: "Enables native HTTP Histograms", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: hostedGrafanaTeam, Created: time.Date(2023, time.October, 3, 12, 0, 0, 0, time.UTC), }, { Name: "formatString", Description: "Enable format string transformer", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaBiSquad, Created: time.Date(2023, time.October, 13, 12, 0, 0, 0, time.UTC), }, { Name: "transformationsVariableSupport", Description: "Allows using variables in transformations", FrontendOnly: true, Stage: FeatureStagePublicPreview, Owner: grafanaBiSquad, Created: time.Date(2023, time.October, 4, 12, 0, 0, 0, time.UTC), }, { Name: "kubernetesPlaylists", Description: "Use the kubernetes API in the frontend for playlists, and route /api/playlist requests to k8s", Stage: FeatureStageExperimental, Owner: grafanaAppPlatformSquad, RequiresRestart: true, // changes the API routing Created: time.Date(2023, time.November, 8, 12, 0, 0, 0, time.UTC), }, { Name: "kubernetesSnapshots", Description: "Use the kubernetes API in the frontend to support playlists", Stage: FeatureStageExperimental, Owner: grafanaAppPlatformSquad, RequiresRestart: true, // changes the API routing Created: time.Date(2023, time.December, 4, 12, 0, 0, 0, time.UTC), }, { Name: "cloudWatchBatchQueries", Description: "Runs CloudWatch metrics queries as separate batches", Stage: FeatureStagePublicPreview, Owner: awsDatasourcesSquad, Created: time.Date(2023, time.October, 20, 12, 0, 0, 0, time.UTC), }, { Name: "recoveryThreshold", Description: "Enables feature recovery threshold (aka hysteresis) for threshold server-side expression", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaAlertingSquad, RequiresRestart: true, Created: time.Date(2023, time.October, 10, 12, 0, 0, 0, time.UTC), }, { Name: "lokiStructuredMetadata", Description: "Enables the loki data source to request structured metadata from the Loki server", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaObservabilityLogsSquad, Created: time.Date(2023, time.November, 16, 12, 0, 0, 0, time.UTC), }, { Name: "teamHttpHeaders", Description: "Enables datasources to apply team headers to the client requests", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: identityAccessTeam, Created: time.Date(2023, time.October, 17, 12, 0, 0, 0, time.UTC), }, { Name: "awsDatasourcesNewFormStyling", Description: "Applies new form styling for configuration and query editors in AWS plugins", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: awsDatasourcesSquad, Created: time.Date(2023, time.October, 12, 12, 0, 0, 0, time.UTC), }, { Name: "cachingOptimizeSerializationMemoryUsage", Description: "If enabled, the caching backend gradually serializes query responses for the cache, comparing against the configured `[caching]max_value_mb` value as it goes. This can can help prevent Grafana from running out of memory while attempting to cache very large query responses.", Stage: FeatureStageExperimental, Owner: grafanaOperatorExperienceSquad, FrontendOnly: false, Created: time.Date(2023, time.October, 12, 12, 0, 0, 0, time.UTC), }, { Name: "panelTitleSearchInV1", Description: "Enable searching for dashboards using panel title in search v1", RequiresDevMode: true, Stage: FeatureStageExperimental, Owner: grafanaBackendPlatformSquad, Created: time.Date(2023, time.October, 13, 12, 0, 0, 0, time.UTC), }, { Name: "pluginsInstrumentationStatusSource", Description: "Include a status source label for plugin request metrics and logs", FrontendOnly: false, Stage: FeatureStageExperimental, Owner: grafanaPluginsPlatformSquad, Created: time.Date(2023, time.October, 17, 12, 0, 0, 0, time.UTC), }, { Name: "costManagementUi", Description: "Toggles the display of the cost management ui plugin", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaDatabasesFrontend, Created: time.Date(2023, time.October, 17, 12, 0, 0, 0, time.UTC), }, { Name: "managedPluginsInstall", Description: "Install managed plugins directly from plugins catalog", Stage: FeatureStageExperimental, RequiresDevMode: false, Owner: grafanaPluginsPlatformSquad, Created: time.Date(2023, time.October, 18, 12, 0, 0, 0, time.UTC), }, { Name: "prometheusPromQAIL", Description: "Prometheus and AI/ML to assist users in creating a query", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaObservabilityMetricsSquad, Created: time.Date(2023, time.October, 19, 12, 0, 0, 0, time.UTC), }, { Name: "addFieldFromCalculationStatFunctions", Description: "Add cumulative and window functions to the add field from calculation transformation", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaBiSquad, Created: time.Date(2023, time.November, 3, 12, 0, 0, 0, time.UTC), }, { Name: "alertmanagerRemoteSecondary", Description: "Enable Grafana to sync configuration and state with a remote Alertmanager.", Stage: FeatureStageExperimental, Owner: grafanaAlertingSquad, Created: time.Date(2023, time.October, 30, 12, 0, 0, 0, time.UTC), }, { Name: "alertmanagerRemotePrimary", Description: "Enable Grafana to have a remote Alertmanager instance as the primary Alertmanager.", Stage: FeatureStageExperimental, Owner: grafanaAlertingSquad, Created: time.Date(2023, time.October, 30, 12, 0, 0, 0, time.UTC), }, { Name: "alertmanagerRemoteOnly", Description: "Disable the internal Alertmanager and only use the external one defined.", Stage: FeatureStageExperimental, Owner: grafanaAlertingSquad, Created: time.Date(2023, time.October, 30, 12, 0, 0, 0, time.UTC), }, { Name: "annotationPermissionUpdate", Description: "Separate annotation permissions from dashboard permissions to allow for more granular control.", Stage: FeatureStageExperimental, RequiresDevMode: false, Owner: identityAccessTeam, Created: time.Date(2023, time.October, 31, 12, 0, 0, 0, time.UTC), }, { Name: "extractFieldsNameDeduplication", Description: "Make sure extracted field names are unique in the dataframe", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaBiSquad, Created: time.Date(2023, time.November, 2, 12, 0, 0, 0, time.UTC), }, { Name: "dashboardSceneForViewers", Description: "Enables dashboard rendering using Scenes for viewer roles", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaDashboardsSquad, Created: time.Date(2023, time.November, 2, 12, 0, 0, 0, time.UTC), }, { Name: "dashboardScene", Description: "Enables dashboard rendering using scenes for all roles", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaDashboardsSquad, Created: time.Date(2023, time.November, 13, 12, 0, 0, 0, time.UTC), }, { Name: "panelFilterVariable", Description: "Enables use of the `systemPanelFilterVar` variable to filter panels in a dashboard", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaDashboardsSquad, HideFromDocs: true, Created: time.Date(2023, time.November, 3, 12, 0, 0, 0, time.UTC), }, { Name: "pdfTables", Description: "Enables generating table data as PDF in reporting", Stage: FeatureStagePrivatePreview, FrontendOnly: false, Owner: grafanaSharingSquad, Created: time.Date(2023, time.November, 6, 12, 0, 0, 0, time.UTC), }, { Name: "ssoSettingsApi", Description: "Enables the SSO settings API", RequiresDevMode: true, Stage: FeatureStageExperimental, FrontendOnly: false, Owner: identityAccessTeam, Created: time.Date(2023, time.November, 8, 12, 0, 0, 0, time.UTC), }, { Name: "logsInfiniteScrolling", Description: "Enables infinite scrolling for the Logs panel in Explore and Dashboards", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaObservabilityLogsSquad, Created: time.Date(2023, time.November, 9, 12, 0, 0, 0, time.UTC), }, { Name: "flameGraphItemCollapsing", Description: "Allow collapsing of flame graph items", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaObservabilityTracesAndProfilingSquad, Created: time.Date(2023, time.November, 9, 12, 0, 0, 0, time.UTC), }, { Name: "alertingDetailsViewV2", Description: "Enables the preview of the new alert details view", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaAlertingSquad, HideFromDocs: true, Created: time.Date(2023, time.November, 9, 12, 0, 0, 0, time.UTC), }, { Name: "datatrails", Description: "Enables the new core app datatrails", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaDashboardsSquad, HideFromDocs: true, Created: time.Date(2023, time.November, 15, 12, 0, 0, 0, time.UTC), }, { Name: "alertingSimplifiedRouting", Description: "Enables the simplified routing for alerting", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaAlertingSquad, HideFromDocs: true, Created: time.Date(2023, time.November, 10, 12, 0, 0, 0, time.UTC), }, { Name: "logRowsPopoverMenu", Description: "Enable filtering menu displayed when text of a log line is selected", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaObservabilityLogsSquad, Created: time.Date(2023, time.November, 16, 12, 0, 0, 0, time.UTC), }, { Name: "pluginsSkipHostEnvVars", Description: "Disables passing host environment variable to plugin processes", Stage: FeatureStageExperimental, FrontendOnly: false, Owner: grafanaPluginsPlatformSquad, Created: time.Date(2023, time.November, 15, 12, 0, 0, 0, time.UTC), }, { Name: "regressionTransformation", Description: "Enables regression analysis transformation", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: grafanaBiSquad, Created: time.Date(2023, time.November, 24, 12, 0, 0, 0, time.UTC), }, { Name: "displayAnonymousStats", Description: "Enables anonymous stats to be shown in the UI for Grafana", Stage: FeatureStageExperimental, FrontendOnly: true, Owner: identityAccessTeam, Created: time.Date(2023, time.November, 29, 12, 0, 0, 0, time.UTC), }, } ) func boolPtr(b bool) *bool { return &b }
pkg/services/featuremgmt/registry.go
1
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.9963078498840332, 0.008746764622628689, 0.00016427721129730344, 0.0006119804456830025, 0.08798602968454361 ]
{ "id": 2, "code_window": [ "\t\t\tCreated: time.Date(2023, time.November, 24, 12, 0, 0, 0, time.UTC),\n", "\t\t},\n", "\t\t{\n", "\t\t\tName: \"displayAnonymousStats\",\n", "\t\t\tDescription: \"Enables anonymous stats to be shown in the UI for Grafana\",\n", "\t\t\tStage: FeatureStageExperimental,\n", "\t\t\tFrontendOnly: true,\n", "\t\t\tOwner: identityAccessTeam,\n", "\t\t\tCreated: time.Date(2023, time.November, 29, 12, 0, 0, 0, time.UTC),\n", "\t\t},\n", "\t}\n", ")\n", "\n" ], "labels": [ "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ], "after_edit": [ "\t\t\tName: \"displayAnonymousStats\",\n", "\t\t\tDescription: \"Enables anonymous stats to be shown in the UI for Grafana\",\n", "\t\t\tStage: FeatureStageGeneralAvailability,\n", "\t\t\tFrontendOnly: true,\n", "\t\t\tOwner: identityAccessTeam,\n", "\t\t\tCreated: time.Date(2023, time.November, 29, 12, 0, 0, 0, time.UTC),\n", "\t\t\tAllowSelfServe: falsePtr,\n", "\t\t\tExpression: \"true\", // enabled by default\n" ], "file_path": "pkg/services/featuremgmt/registry.go", "type": "replace", "edit_start_line_idx": 1000 }
<page-header model="ctrl.navModel"></page-header> <div class="page-container page-body"> <div class="grafana-info-box span8"> Grafana is a multi-tenant system where most can be configured per organization. These admin pages are for server admins where you can manage orgs, & all users across all orgs. </div> </div> <footer />
public/app/features/admin/partials/admin_home.html
0
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.0003515855350997299, 0.00026223863824270666, 0.0001728917268337682, 0.00026223863824270666, 0.00008934690413298085 ]
{ "id": 2, "code_window": [ "\t\t\tCreated: time.Date(2023, time.November, 24, 12, 0, 0, 0, time.UTC),\n", "\t\t},\n", "\t\t{\n", "\t\t\tName: \"displayAnonymousStats\",\n", "\t\t\tDescription: \"Enables anonymous stats to be shown in the UI for Grafana\",\n", "\t\t\tStage: FeatureStageExperimental,\n", "\t\t\tFrontendOnly: true,\n", "\t\t\tOwner: identityAccessTeam,\n", "\t\t\tCreated: time.Date(2023, time.November, 29, 12, 0, 0, 0, time.UTC),\n", "\t\t},\n", "\t}\n", ")\n", "\n" ], "labels": [ "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ], "after_edit": [ "\t\t\tName: \"displayAnonymousStats\",\n", "\t\t\tDescription: \"Enables anonymous stats to be shown in the UI for Grafana\",\n", "\t\t\tStage: FeatureStageGeneralAvailability,\n", "\t\t\tFrontendOnly: true,\n", "\t\t\tOwner: identityAccessTeam,\n", "\t\t\tCreated: time.Date(2023, time.November, 29, 12, 0, 0, 0, time.UTC),\n", "\t\t\tAllowSelfServe: falsePtr,\n", "\t\t\tExpression: \"true\", // enabled by default\n" ], "file_path": "pkg/services/featuremgmt/registry.go", "type": "replace", "edit_start_line_idx": 1000 }
import Feature from 'ol/Feature'; import Map from 'ol/Map'; import { Coordinate } from 'ol/coordinate'; import { MultiLineString } from 'ol/geom'; import Point from 'ol/geom/Point'; import { Group as LayerGroup } from 'ol/layer'; import VectorLayer from 'ol/layer/Vector'; import { fromLonLat } from 'ol/proj'; import VectorSource from 'ol/source/Vector'; import { Fill, Stroke, Style, Circle } from 'ol/style'; import DayNight from 'ol-ext/source/DayNight'; import { Subscription } from 'rxjs'; import { MapLayerRegistryItem, MapLayerOptions, PanelData, GrafanaTheme2, EventBus, DataHoverEvent, DataHoverClearEvent, } from '@grafana/data'; export enum ShowTime { From = 'from', To = 'to', } // Configuration options for Circle overlays export interface DayNightConfig { show: ShowTime; sun: boolean; nightColor: string; } const defaultConfig: DayNightConfig = { show: ShowTime.To, sun: false, nightColor: '#a7a6ba4D', }; export const DAY_NIGHT_LAYER_ID = 'dayNight'; // Used by default when nothing is configured export const defaultDayNightConfig: MapLayerOptions<DayNightConfig> = { type: DAY_NIGHT_LAYER_ID, name: '', // will get replaced config: defaultConfig, tooltip: true, }; /** * Map layer configuration for circle overlay */ export const dayNightLayer: MapLayerRegistryItem<DayNightConfig> = { id: DAY_NIGHT_LAYER_ID, name: 'Night / Day', description: 'Show day and night regions', isBaseMap: false, /** * Function that configures transformation and returns a transformer * @param map * @param options * @param theme */ create: async (map: Map, options: MapLayerOptions<DayNightConfig>, eventBus: EventBus, theme: GrafanaTheme2) => { // Assert default values const config = { ...defaultConfig, ...options?.config, }; // DayNight source const source = new DayNight({}); const sourceMethods = Object.getPrototypeOf(source); const sourceLine = new DayNight({}); const sourceLineMethods = Object.getPrototypeOf(sourceLine); // Night polygon const vectorLayer = new VectorLayer({ source, style: new Style({ fill: new Fill({ color: theme.visualization.getColorByName(config.nightColor), }), }), }); // Night line (for crosshair sharing) const nightLineLayer = new VectorLayer({ source: new VectorSource({ features: [], }), style: new Style({ stroke: new Stroke({ color: '#607D8B', width: 1.5, lineDash: [2, 3], }), }), }); // Sun circle const sunFeature = new Feature({ geometry: new Point([]), }); const sunLayer = new VectorLayer({ source: new VectorSource({ features: [sunFeature], }), style: new Style({ image: new Circle({ radius: 13, fill: new Fill({ color: 'rgb(253,184,19)' }), }), }), }); // Sun line (for crosshair sharing) const sunLineFeature = new Feature({ geometry: new Point([]), }); const sunLineStyle = new Style({ image: new Circle({ radius: 13, stroke: new Stroke({ color: 'rgb(253,184,19)', width: 1.5, }), }), }); const sunLineStyleDash = new Style({ image: new Circle({ radius: 15, stroke: new Stroke({ color: '#607D8B', width: 1.5, lineDash: [2, 3], }), }), }); const sunLineLayer = new VectorLayer({ source: new VectorSource({ features: [sunLineFeature], }), style: [sunLineStyleDash, sunLineStyle], }); // Build group of layers // TODO: add blended night region to "connect" current night region to lines const layer = new LayerGroup({ layers: config.sun ? [vectorLayer, sunLayer, sunLineLayer, nightLineLayer] : [vectorLayer, nightLineLayer], }); // Crosshair sharing subscriptions const subscriptions = new Subscription(); if (false) { subscriptions.add( eventBus.subscribe(DataHoverEvent, (event) => { const time = event.payload?.point?.time; if (time) { const lineTime = new Date(time); const nightLinePoints = sourceLine.getCoordinates(lineTime.toString(), 'line'); nightLineLayer.getSource()?.clear(); const lineStringArray: Coordinate[][] = []; for (let l = 0; l < nightLinePoints.length - 1; l++) { const x1: number = Object.values(nightLinePoints[l])[0]; const y1: number = Object.values(nightLinePoints[l])[1]; const x2: number = Object.values(nightLinePoints[l + 1])[0]; const y2: number = Object.values(nightLinePoints[l + 1])[1]; const lineString = [fromLonLat([x1, y1]), fromLonLat([x2, y2])]; lineStringArray.push(lineString); } nightLineLayer.getSource()?.addFeature( new Feature({ geometry: new MultiLineString(lineStringArray), }) ); let sunLinePos: number[] = []; sunLinePos = sourceLineMethods.getSunPosition(lineTime); sunLineFeature.getGeometry()?.setCoordinates(fromLonLat(sunLinePos)); sunLineFeature.setStyle([sunLineStyle, sunLineStyleDash]); } }) ); subscriptions.add( eventBus.subscribe(DataHoverClearEvent, (event) => { nightLineLayer.getSource()?.clear(); sunLineFeature.setStyle(new Style({})); }) ); } return { init: () => layer, dispose: () => subscriptions.unsubscribe(), update: (data: PanelData) => { const from = new Date(data.timeRange.from.valueOf()); const to = new Date(data.timeRange.to.valueOf()); let selectedTime: Date = new Date(); let sunPos: number[] = []; // TODO: add option for "Both" if (config.show === ShowTime.From) { selectedTime = from; } else { selectedTime = to; } source.setTime(selectedTime); if (config.sun) { sunPos = sourceMethods.getSunPosition(selectedTime); sunFeature.getGeometry()?.setCoordinates(fromLonLat(sunPos)); } }, // Marker overlay options registerOptionsUI: (builder) => { if (!options.config?.nightColor) { options.config = { ...defaultConfig, ...options.config }; } builder.addRadio({ path: 'config.show', name: 'Show', settings: { options: [ { label: 'From', value: ShowTime.From }, { label: 'To', value: ShowTime.To }, ], }, defaultValue: defaultConfig.show, }); builder.addColorPicker({ path: 'config.nightColor', name: 'Night region color', description: 'Pick color of night region', defaultValue: defaultConfig.nightColor, settings: [{ enableNamedColors: false }], }); builder.addBooleanSwitch({ path: 'config.sun', name: 'Display sun', description: 'Show the sun', defaultValue: defaultConfig.sun, }); }, }; }, // fill in the default values defaultOptions: defaultConfig, };
public/app/plugins/panel/geomap/layers/data/dayNightLayer.tsx
0
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.00018067182099912316, 0.0001726996706565842, 0.00016078112821560353, 0.00017280784959439188, 0.0000041365824472450186 ]
{ "id": 2, "code_window": [ "\t\t\tCreated: time.Date(2023, time.November, 24, 12, 0, 0, 0, time.UTC),\n", "\t\t},\n", "\t\t{\n", "\t\t\tName: \"displayAnonymousStats\",\n", "\t\t\tDescription: \"Enables anonymous stats to be shown in the UI for Grafana\",\n", "\t\t\tStage: FeatureStageExperimental,\n", "\t\t\tFrontendOnly: true,\n", "\t\t\tOwner: identityAccessTeam,\n", "\t\t\tCreated: time.Date(2023, time.November, 29, 12, 0, 0, 0, time.UTC),\n", "\t\t},\n", "\t}\n", ")\n", "\n" ], "labels": [ "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ], "after_edit": [ "\t\t\tName: \"displayAnonymousStats\",\n", "\t\t\tDescription: \"Enables anonymous stats to be shown in the UI for Grafana\",\n", "\t\t\tStage: FeatureStageGeneralAvailability,\n", "\t\t\tFrontendOnly: true,\n", "\t\t\tOwner: identityAccessTeam,\n", "\t\t\tCreated: time.Date(2023, time.November, 29, 12, 0, 0, 0, time.UTC),\n", "\t\t\tAllowSelfServe: falsePtr,\n", "\t\t\tExpression: \"true\", // enabled by default\n" ], "file_path": "pkg/services/featuremgmt/registry.go", "type": "replace", "edit_start_line_idx": 1000 }
# This Dockerfile builds an image for a client_golang example. # Builder image, where we build the example. FROM golang:1.17 AS builder # Download prometheus/client_golang/examples/random first RUN CGO_ENABLED=0 GOOS=linux go install -tags netgo -ldflags '-w' github.com/prometheus/client_golang/examples/[email protected] # Final image. FROM scratch LABEL maintainer "The Prometheus Authors <[email protected]>" COPY --from=builder /go/bin/random . EXPOSE 8080 ENTRYPOINT ["/random"]
devenv/docker/blocks/prometheus_random_data/Dockerfile
0
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.00017344453954137862, 0.00016788451466709375, 0.0001623244897928089, 0.00016788451466709375, 0.0000055600248742848635 ]
{ "id": 3, "code_window": [ "alertingSimplifiedRouting,experimental,@grafana/alerting-squad,2023-11-10,false,false,false,false\n", "logRowsPopoverMenu,experimental,@grafana/observability-logs,2023-11-16,false,false,false,true\n", "pluginsSkipHostEnvVars,experimental,@grafana/plugins-platform-backend,2023-11-15,false,false,false,false\n", "regressionTransformation,experimental,@grafana/grafana-bi-squad,2023-11-24,false,false,false,true\n", "displayAnonymousStats,experimental,@grafana/identity-access-team,2023-11-29,false,false,false,true\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace" ], "after_edit": [ "displayAnonymousStats,GA,@grafana/identity-access-team,2023-11-29,false,false,false,true" ], "file_path": "pkg/services/featuremgmt/toggles_gen.csv", "type": "replace", "edit_start_line_idx": 150 }
--- aliases: - /docs/grafana/latest/setup-grafana/configure-grafana/feature-toggles/ description: Learn about feature toggles, which you can enable or disable. title: Configure feature toggles weight: 150 --- <!-- DO NOT EDIT THIS PAGE, it is machine generated by running the test in --> <!-- https://github.com/grafana/grafana/blob/main/pkg/services/featuremgmt/toggles_gen_test.go#L19 --> # Configure feature toggles You use feature toggles, also known as feature flags, to enable or disable features in Grafana. You can turn on feature toggles to try out new functionality in development or test environments. This page contains a list of available feature toggles. To learn how to turn on feature toggles, refer to our [Configure Grafana documentation]({{< relref "../_index.md#feature_toggles" >}}). Feature toggles are also available to Grafana Cloud Advanced customers. If you use Grafana Cloud Advanced, you can open a support ticket and specify the feature toggles and stack for which you want them enabled. ## Feature toggles Some features are enabled by default. You can disable these feature by setting the feature flag to "false" in the configuration. | Feature toggle name | Description | Enabled by default | | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | | `disableEnvelopeEncryption` | Disable envelope encryption (emergency only) | | | `publicDashboards` | Enables public access to dashboards | Yes | | `featureHighlights` | Highlight Grafana Enterprise features | | | `exploreContentOutline` | Content outline sidebar | Yes | | `newVizTooltips` | New visualizations tooltips UX | | | `dataConnectionsConsole` | Enables a new top-level page called Connections. This page is an experiment that provides a better experience when you install and configure data sources and other plugins. | Yes | | `cloudWatchCrossAccountQuerying` | Enables cross-account querying in CloudWatch datasources | Yes | | `redshiftAsyncQueryDataSupport` | Enable async query data support for Redshift | Yes | | `athenaAsyncQueryDataSupport` | Enable async query data support for Athena | Yes | | `nestedFolderPicker` | Enables the new folder picker to work with nested folders. Requires the nestedFolders feature toggle | Yes | | `accessTokenExpirationCheck` | Enable OAuth access_token expiration check and token refresh using the refresh_token | | | `emptyDashboardPage` | Enable the redesigned user interface of a dashboard page that includes no panels | Yes | | `disablePrometheusExemplarSampling` | Disable Prometheus exemplar sampling | | | `logsContextDatasourceUi` | Allow datasource to provide custom UI for context view | Yes | | `lokiQuerySplitting` | Split large interval queries into subqueries with smaller time intervals | Yes | | `prometheusMetricEncyclopedia` | Adds the metrics explorer component to the Prometheus query builder as an option in metric select | Yes | | `influxdbBackendMigration` | Query InfluxDB InfluxQL without the proxy | Yes | | `clientTokenRotation` | Replaces the current in-request token rotation so that the client initiates the rotation | Yes | | `prometheusDataplane` | Changes responses to from Prometheus to be compliant with the dataplane specification. In particular, when this feature toggle is active, the numeric `Field.Name` is set from 'Value' to the value of the `__name__` label. | Yes | | `lokiMetricDataplane` | Changes metric responses from Loki to be compliant with the dataplane specification. | Yes | | `dataplaneFrontendFallback` | Support dataplane contract field name change for transformations and field name matchers where the name is different | Yes | | `useCachingService` | When active, the new query and resource caching implementation using a wire service inject replaces the previous middleware implementation. | Yes | | `enableElasticsearchBackendQuerying` | Enable the processing of queries and responses in the Elasticsearch data source through backend | Yes | | `advancedDataSourcePicker` | Enable a new data source picker with contextual information, recently used order and advanced mode | Yes | | `cloudWatchLogsMonacoEditor` | Enables the Monaco editor for CloudWatch Logs queries | Yes | | `recordedQueriesMulti` | Enables writing multiple items from a single query within Recorded Queries | Yes | | `transformationsRedesign` | Enables the transformations redesign | Yes | | `prometheusConfigOverhaulAuth` | Update the Prometheus configuration page with the new auth component | Yes | | `alertingInsights` | Show the new alerting insights landing page | Yes | | `cloudWatchWildCardDimensionValues` | Fetches dimension values from CloudWatch to correctly label wildcard dimensions | Yes | ## Preview feature toggles | Feature toggle name | Description | | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `panelTitleSearch` | Search for dashboards using panel title | | `migrationLocking` | Lock database during migrations | | `correlations` | Correlations page | | `autoMigrateOldPanels` | Migrate old angular panels to supported versions (graph, table-old, worldmap, etc) | | `disableAngular` | Dynamic flag to disable angular at runtime. The preferred method is to set `angular_support_enabled` to `false` in the [security] settings, which allows you to change the state at runtime. | | `grpcServer` | Run the GRPC server | | `accessControlOnCall` | Access control primitives for OnCall | | `nestedFolders` | Enable folder nesting | | `alertingNoNormalState` | Stop maintaining state of alerts that are not firing | | `renderAuthJWT` | Uses JWT-based auth for rendering instead of relying on remote cache | | `refactorVariablesTimeRange` | Refactor time range variables flow to reduce number of API calls made when query variables are chained | | `faroDatasourceSelector` | Enable the data source selector within the Frontend Apps section of the Frontend Observability | | `enableDatagridEditing` | Enables the edit functionality in the datagrid panel | | `sqlDatasourceDatabaseSelection` | Enables previous SQL data source dataset dropdown behavior | | `awsAsyncQueryCaching` | Enable caching for async queries for Redshift and Athena. Requires that the `useCachingService` feature toggle is enabled and the datasource has caching and async query support enabled | | `splitScopes` | Support faster dashboard and folder search by splitting permission scopes into parts | | `dashgpt` | Enable AI powered features in dashboards | | `reportingRetries` | Enables rendering retries for the reporting feature | | `transformationsVariableSupport` | Allows using variables in transformations | | `cloudWatchBatchQueries` | Runs CloudWatch metrics queries as separate batches | ## Experimental feature toggles These features are early in their development lifecycle and so are not yet supported in Grafana Cloud. Experimental features might be changed or removed without prior notice. | Feature toggle name | Description | | ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `live-service-web-worker` | This will use a webworker thread to processes events rather than the main thread | | `queryOverLive` | Use Grafana Live WebSocket to execute backend queries | | `lokiExperimentalStreaming` | Support new streaming approach for loki (prototype, needs special loki build) | | `storage` | Configurable storage for dashboards, datasources, and resources | | `datasourceQueryMultiStatus` | Introduce HTTP 207 Multi Status for api/ds/query | | `traceToMetrics` | Enable trace to metrics links | | `canvasPanelNesting` | Allow elements nesting | | `scenes` | Experimental framework to build interactive dashboards | | `disableSecretsCompatibility` | Disable duplicated secret storage in legacy tables | | `logRequestsInstrumentedAsUnknown` | Logs the path for requests that are instrumented as unknown | | `dockedMegaMenu` | Enable support for a persistent (docked) navigation menu | | `cloudwatchNewRegionsHandler` | Refactor of /regions endpoint, no user-facing changes | | `showDashboardValidationWarnings` | Show warnings when dashboards do not validate against the schema | | `mysqlAnsiQuotes` | Use double quotes to escape keyword in a MySQL query | | `alertingBacktesting` | Rule backtesting API for alerting | | `editPanelCSVDragAndDrop` | Enables drag and drop for CSV and Excel files | | `lokiQuerySplittingConfig` | Give users the option to configure split durations for Loki queries | | `individualCookiePreferences` | Support overriding cookie preferences per user | | `influxqlStreamingParser` | Enable streaming JSON parser for InfluxDB datasource InfluxQL query language | | `lokiLogsDataplane` | Changes logs responses from Loki to be compliant with the dataplane specification. | | `disableSSEDataplane` | Disables dataplane specific processing in server side expressions. | | `alertStateHistoryLokiSecondary` | Enable Grafana to write alert state history to an external Loki instance in addition to Grafana annotations. | | `alertStateHistoryLokiPrimary` | Enable a remote Loki instance as the primary source for state history reads. | | `alertStateHistoryLokiOnly` | Disable Grafana alerts from emitting annotations when a remote Loki instance is available. | | `unifiedRequestLog` | Writes error logs to the request logger | | `extraThemes` | Enables extra themes | | `lokiPredefinedOperations` | Adds predefined query operations to Loki query editor | | `pluginsFrontendSandbox` | Enables the plugins frontend sandbox | | `dashboardEmbed` | Allow embedding dashboard for external use in Code editors | | `frontendSandboxMonitorOnly` | Enables monitor only in the plugin frontend sandbox (if enabled) | | `lokiFormatQuery` | Enables the ability to format Loki queries | | `exploreScrollableLogsContainer` | Improves the scrolling behavior of logs in Explore | | `pluginsDynamicAngularDetectionPatterns` | Enables fetching Angular detection patterns for plugins from GCOM and fallback to hardcoded ones | | `vizAndWidgetSplit` | Split panels between visualizations and widgets | | `prometheusIncrementalQueryInstrumentation` | Adds RudderStack events to incremental queries | | `logsExploreTableVisualisation` | A table visualisation for logs in Explore | | `awsDatasourcesTempCredentials` | Support temporary security credentials in AWS plugins for Grafana Cloud customers | | `mlExpressions` | Enable support for Machine Learning in server-side expressions | | `traceQLStreaming` | Enables response streaming of TraceQL queries of the Tempo data source | | `metricsSummary` | Enables metrics summary queries in the Tempo data source | | `grafanaAPIServer` | Enable Kubernetes API Server for Grafana resources | | `grafanaAPIServerWithExperimentalAPIs` | Register experimental APIs with the k8s API server | | `featureToggleAdminPage` | Enable admin page for managing feature toggles from the Grafana front-end | | `traceToProfiles` | Enables linking between traces and profiles | | `tracesEmbeddedFlameGraph` | Enables embedding a flame graph in traces | | `permissionsFilterRemoveSubquery` | Alternative permission filter implementation that does not use subqueries for fetching the dashboard folder | | `influxdbSqlSupport` | Enable InfluxDB SQL query language support with new querying UI | | `angularDeprecationUI` | Display new Angular deprecation-related UI features | | `sseGroupByDatasource` | Send query to the same datasource in a single request when using server side expressions | | `requestInstrumentationStatusSource` | Include a status source label for request metrics and logs | | `libraryPanelRBAC` | Enables RBAC support for library panels | | `wargamesTesting` | Placeholder feature flag for internal testing | | `externalCorePlugins` | Allow core plugins to be loaded as external | | `pluginsAPIMetrics` | Sends metrics of public grafana packages usage by plugins | | `httpSLOLevels` | Adds SLO level to http request metrics | | `panelMonitoring` | Enables panel monitoring through logs and measurements | | `enableNativeHTTPHistogram` | Enables native HTTP Histograms | | `formatString` | Enable format string transformer | | `kubernetesPlaylists` | Use the kubernetes API in the frontend for playlists, and route /api/playlist requests to k8s | | `kubernetesSnapshots` | Use the kubernetes API in the frontend to support playlists | | `recoveryThreshold` | Enables feature recovery threshold (aka hysteresis) for threshold server-side expression | | `lokiStructuredMetadata` | Enables the loki data source to request structured metadata from the Loki server | | `teamHttpHeaders` | Enables datasources to apply team headers to the client requests | | `awsDatasourcesNewFormStyling` | Applies new form styling for configuration and query editors in AWS plugins | | `cachingOptimizeSerializationMemoryUsage` | If enabled, the caching backend gradually serializes query responses for the cache, comparing against the configured `[caching]max_value_mb` value as it goes. This can can help prevent Grafana from running out of memory while attempting to cache very large query responses. | | `pluginsInstrumentationStatusSource` | Include a status source label for plugin request metrics and logs | | `costManagementUi` | Toggles the display of the cost management ui plugin | | `managedPluginsInstall` | Install managed plugins directly from plugins catalog | | `prometheusPromQAIL` | Prometheus and AI/ML to assist users in creating a query | | `addFieldFromCalculationStatFunctions` | Add cumulative and window functions to the add field from calculation transformation | | `alertmanagerRemoteSecondary` | Enable Grafana to sync configuration and state with a remote Alertmanager. | | `alertmanagerRemotePrimary` | Enable Grafana to have a remote Alertmanager instance as the primary Alertmanager. | | `alertmanagerRemoteOnly` | Disable the internal Alertmanager and only use the external one defined. | | `annotationPermissionUpdate` | Separate annotation permissions from dashboard permissions to allow for more granular control. | | `extractFieldsNameDeduplication` | Make sure extracted field names are unique in the dataframe | | `dashboardSceneForViewers` | Enables dashboard rendering using Scenes for viewer roles | | `dashboardScene` | Enables dashboard rendering using scenes for all roles | | `logsInfiniteScrolling` | Enables infinite scrolling for the Logs panel in Explore and Dashboards | | `flameGraphItemCollapsing` | Allow collapsing of flame graph items | | `logRowsPopoverMenu` | Enable filtering menu displayed when text of a log line is selected | | `pluginsSkipHostEnvVars` | Disables passing host environment variable to plugin processes | | `regressionTransformation` | Enables regression analysis transformation | | `displayAnonymousStats` | Enables anonymous stats to be shown in the UI for Grafana | ## Development feature toggles The following toggles require explicitly setting Grafana's [app mode]({{< relref "../_index.md#app_mode" >}}) to 'development' before you can enable this feature toggle. These features tend to be experimental. | Feature toggle name | Description | | ------------------------------------- | -------------------------------------------------------------------------------------------- | | `unifiedStorage` | SQL-based k8s storage | | `externalServiceAuth` | Starts an OAuth2 authentication provider for external services | | `grafanaAPIServerEnsureKubectlAccess` | Start an additional https handler and write kubectl options | | `idForwarding` | Generate signed id token for identity that can be forwarded to plugins and external services | | `externalServiceAccounts` | Automatic service account and token setup for plugins | | `panelTitleSearchInV1` | Enable searching for dashboards using panel title in search v1 | | `ssoSettingsApi` | Enables the SSO settings API |
docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md
1
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.0001795187417883426, 0.00016757167759351432, 0.00016181835962925106, 0.000167058315128088, 0.00000418229592469288 ]
{ "id": 3, "code_window": [ "alertingSimplifiedRouting,experimental,@grafana/alerting-squad,2023-11-10,false,false,false,false\n", "logRowsPopoverMenu,experimental,@grafana/observability-logs,2023-11-16,false,false,false,true\n", "pluginsSkipHostEnvVars,experimental,@grafana/plugins-platform-backend,2023-11-15,false,false,false,false\n", "regressionTransformation,experimental,@grafana/grafana-bi-squad,2023-11-24,false,false,false,true\n", "displayAnonymousStats,experimental,@grafana/identity-access-team,2023-11-29,false,false,false,true\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace" ], "after_edit": [ "displayAnonymousStats,GA,@grafana/identity-access-team,2023-11-29,false,false,false,true" ], "file_path": "pkg/services/featuremgmt/toggles_gen.csv", "type": "replace", "edit_start_line_idx": 150 }
import { configureStore } from 'app/store/configureStore'; import { useSelector } from 'app/types'; import { fullyLoadedViewItemCollection } from '../fixtures/state.fixtures'; import { BrowseDashboardsState } from '../types'; import { useBrowseLoadingStatus } from './hooks'; jest.mock('app/types', () => { const original = jest.requireActual('app/types'); return { ...original, useSelector: jest.fn(), }; }); function createInitialState(partial: Partial<BrowseDashboardsState>): BrowseDashboardsState { return { rootItems: undefined, childrenByParentUID: {}, openFolders: {}, selectedItems: { $all: false, dashboard: {}, folder: {}, panel: {}, }, ...partial, }; } describe('browse-dashboards state hooks', () => { const folderUID = 'abc-123'; function mockState(browseState: BrowseDashboardsState) { const wholeState = configureStore().getState(); wholeState.browseDashboards = browseState; jest.mocked(useSelector).mockImplementationOnce((callback) => { return callback(wholeState); }); } describe('useBrowseLoadingStatus', () => { it('returns loading when root view is loading', () => { mockState(createInitialState({ rootItems: undefined })); const status = useBrowseLoadingStatus(undefined); expect(status).toEqual('pending'); }); it('returns loading when folder view is loading', () => { mockState(createInitialState({ childrenByParentUID: {} })); const status = useBrowseLoadingStatus(folderUID); expect(status).toEqual('pending'); }); it('returns fulfilled when root view is finished loading', () => { mockState(createInitialState({ rootItems: fullyLoadedViewItemCollection([]) })); const status = useBrowseLoadingStatus(undefined); expect(status).toEqual('fulfilled'); }); it('returns fulfilled when folder view is finished loading', () => { mockState( createInitialState({ childrenByParentUID: { [folderUID]: fullyLoadedViewItemCollection([]), }, }) ); const status = useBrowseLoadingStatus(folderUID); expect(status).toEqual('fulfilled'); }); }); });
public/app/features/browse-dashboards/state/hooks.test.ts
0
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.00017559148545842618, 0.00017403152014594525, 0.00016993751341942698, 0.0001749080402078107, 0.0000018240787085233023 ]
{ "id": 3, "code_window": [ "alertingSimplifiedRouting,experimental,@grafana/alerting-squad,2023-11-10,false,false,false,false\n", "logRowsPopoverMenu,experimental,@grafana/observability-logs,2023-11-16,false,false,false,true\n", "pluginsSkipHostEnvVars,experimental,@grafana/plugins-platform-backend,2023-11-15,false,false,false,false\n", "regressionTransformation,experimental,@grafana/grafana-bi-squad,2023-11-24,false,false,false,true\n", "displayAnonymousStats,experimental,@grafana/identity-access-team,2023-11-29,false,false,false,true\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace" ], "after_edit": [ "displayAnonymousStats,GA,@grafana/identity-access-team,2023-11-29,false,false,false,true" ], "file_path": "pkg/services/featuremgmt/toggles_gen.csv", "type": "replace", "edit_start_line_idx": 150 }
<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M9.07,17.28h2.78l1.75,3.44h2.54L12,9.87ZM2,3V21L9.42,3ZM14.48,3,22,20.81V3Z"/></svg>
public/img/icons/unicons/adobe.svg
0
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.0001745360204949975, 0.0001745360204949975, 0.0001745360204949975, 0.0001745360204949975, 0 ]
{ "id": 3, "code_window": [ "alertingSimplifiedRouting,experimental,@grafana/alerting-squad,2023-11-10,false,false,false,false\n", "logRowsPopoverMenu,experimental,@grafana/observability-logs,2023-11-16,false,false,false,true\n", "pluginsSkipHostEnvVars,experimental,@grafana/plugins-platform-backend,2023-11-15,false,false,false,false\n", "regressionTransformation,experimental,@grafana/grafana-bi-squad,2023-11-24,false,false,false,true\n", "displayAnonymousStats,experimental,@grafana/identity-access-team,2023-11-29,false,false,false,true\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace" ], "after_edit": [ "displayAnonymousStats,GA,@grafana/identity-access-team,2023-11-29,false,false,false,true" ], "file_path": "pkg/services/featuremgmt/toggles_gen.csv", "type": "replace", "edit_start_line_idx": 150 }
import { render } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { noop } from 'lodash'; import React from 'react'; import { byRole } from 'testing-library-selector'; import { Button } from '@grafana/ui'; import { TestProvider } from '../../../../../../test/helpers/TestProvider'; import { RouteWithID } from '../../../../../plugins/datasource/alertmanager/types'; import * as grafanaApp from '../../components/receivers/grafanaAppReceivers/grafanaApp'; import { FormAmRoute } from '../../types/amroutes'; import { GRAFANA_RULES_SOURCE_NAME } from '../../utils/datasource'; import { AmRouteReceiver } from '../receivers/grafanaAppReceivers/types'; import { AmRootRouteForm } from './EditDefaultPolicyForm'; const ui = { error: byRole('alert'), timingOptionsBtn: byRole('button', { name: /Timing options/ }), submitBtn: byRole('button', { name: /Update default policy/ }), groupWaitInput: byRole('textbox', { name: /Group wait/ }), groupIntervalInput: byRole('textbox', { name: /Group interval/ }), repeatIntervalInput: byRole('textbox', { name: /Repeat interval/ }), }; const useGetGrafanaReceiverTypeCheckerMock = jest.spyOn(grafanaApp, 'useGetGrafanaReceiverTypeChecker'); useGetGrafanaReceiverTypeCheckerMock.mockReturnValue(() => undefined); // TODO Default and Notification policy form should be unified so we don't need to maintain two almost identical forms describe('EditDefaultPolicyForm', function () { describe('Timing options', function () { it('should render prometheus duration strings in form inputs', async function () { const user = userEvent.setup(); renderRouteForm({ id: '0', group_wait: '1m30s', group_interval: '2d4h30m35s', repeat_interval: '1w2d6h', }); await user.click(ui.timingOptionsBtn.get()); expect(ui.groupWaitInput.get()).toHaveValue('1m30s'); expect(ui.groupIntervalInput.get()).toHaveValue('2d4h30m35s'); expect(ui.repeatIntervalInput.get()).toHaveValue('1w2d6h'); }); it('should allow submitting valid prometheus duration strings', async function () { const user = userEvent.setup(); const onSubmit = jest.fn(); renderRouteForm( { id: '0', receiver: 'default', }, [{ value: 'default', label: 'Default' }], onSubmit ); await user.click(ui.timingOptionsBtn.get()); await user.type(ui.groupWaitInput.get(), '5m25s'); await user.type(ui.groupIntervalInput.get(), '35m40s'); await user.type(ui.repeatIntervalInput.get(), '4h30m'); await user.click(ui.submitBtn.get()); expect(ui.error.queryAll()).toHaveLength(0); expect(onSubmit).toHaveBeenCalledWith( expect.objectContaining<Partial<FormAmRoute>>({ groupWaitValue: '5m25s', groupIntervalValue: '35m40s', repeatIntervalValue: '4h30m', }), expect.anything() ); }); }); it('should show an error if repeat interval is lower than group interval', async function () { const user = userEvent.setup(); const onSubmit = jest.fn(); renderRouteForm( { id: '0', receiver: 'default', }, [{ value: 'default', label: 'Default' }], onSubmit ); await user.click(ui.timingOptionsBtn.get()); await user.type(ui.groupWaitInput.get(), '5m25s'); await user.type(ui.groupIntervalInput.get(), '35m40s'); await user.type(ui.repeatIntervalInput.get(), '30m'); await user.click(ui.submitBtn.get()); expect(ui.error.getAll()).toHaveLength(1); expect(ui.error.get().textContent).toBe('Repeat interval should be higher or equal to Group interval'); expect(onSubmit).not.toHaveBeenCalled(); }); it('should allow resetting existing timing options', async function () { const user = userEvent.setup(); const onSubmit = jest.fn(); renderRouteForm( { id: '0', receiver: 'default', group_wait: '1m30s', group_interval: '2d4h30m35s', repeat_interval: '1w2d6h', }, [{ value: 'default', label: 'Default' }], onSubmit ); await user.click(ui.timingOptionsBtn.get()); await user.clear(ui.groupWaitInput.get()); await user.clear(ui.groupIntervalInput.get()); await user.clear(ui.repeatIntervalInput.get()); await user.click(ui.submitBtn.get()); expect(ui.error.queryAll()).toHaveLength(0); expect(onSubmit).toHaveBeenCalledWith( expect.objectContaining<Partial<FormAmRoute>>({ groupWaitValue: '', groupIntervalValue: '', repeatIntervalValue: '', }), expect.anything() ); }); }); function renderRouteForm( route: RouteWithID, receivers: AmRouteReceiver[] = [], onSubmit: (route: Partial<FormAmRoute>) => void = noop ) { render( <AmRootRouteForm alertManagerSourceName={GRAFANA_RULES_SOURCE_NAME} actionButtons={<Button type="submit">Update default policy</Button>} onSubmit={onSubmit} receivers={receivers} route={route} />, { wrapper: TestProvider } ); }
public/app/features/alerting/unified/components/notification-policies/EditDefaultPolicyForm.test.tsx
0
https://github.com/grafana/grafana/commit/ce79bbba87e08220974d8994a1bbe34197ff7b2d
[ 0.00018452874792274088, 0.00017319450853392482, 0.00016809534281492233, 0.00017333278083242476, 0.000003910925443051383 ]
{ "id": 0, "code_window": [ " const projectRef = ref as string\n", "\n", " return (\n", " <Panel\n", " noMargin\n", " className={'pb-0 ' + props.className}\n", " bodyClassName=\"h-full\"\n", " wrapWithLoading={false}\n", " >\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " noHideOverflow\n" ], "file_path": "studio/components/interfaces/Reports/ReportWidget.tsx", "type": "add", "edit_start_line_idx": 33 }
import { Loading } from 'ui' import React, { ReactNode } from 'react' interface Props { bodyClassName?: string children?: ReactNode className?: string footer?: JSX.Element | false hideHeaderStyling?: boolean loading?: boolean noMargin?: boolean title?: JSX.Element | false wrapWithLoading?: boolean } function Panel(props: Props) { let headerClasses: string[] = [] if (!props.hideHeaderStyling) { headerClasses = [ ` bg-panel-header-light dark:bg-panel-header-dark border-b border-panel-border-light dark:border-panel-border-dark`, ] } else { headerClasses = [ ` bg-panel-body-light dark:bg-panel-body-dark`, ] } const content = ( <div className={` overflow-hidden rounded-md border border-panel-border-light shadow-sm dark:border-panel-border-dark ${props.noMargin ? '' : 'mb-8'} ${props.className}`} > {props.title && ( <div className={headerClasses.join(' ')}> <div className="flex items-center px-6 py-4">{props.title}</div> </div> )} <div className={`bg-panel-body-light dark:bg-panel-body-dark ${props.bodyClassName || ''}`}> {props.children} </div> {props.footer && ( <div className=" border-t border-panel-border-interior-light bg-panel-footer-light dark:border-panel-border-interior-dark dark:bg-panel-footer-dark" > <div className="flex h-12 items-center px-6">{props.footer}</div> </div> )} </div> ) if (props.wrapWithLoading === false) { return content } return <Loading active={Boolean(props.loading)}>{content}</Loading> } function Content({ children, className }: { children: ReactNode; className?: string | false }) { let classes = ['px-6 py-4'] if (className) classes.push(className) return <div className={classes.join(' ')}>{children}</div> } Panel.Content = Content export default Panel
studio/components/ui/Panel.tsx
1
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00509751308709383, 0.001388384262099862, 0.0002461497497279197, 0.0005837601493112743, 0.0015625240048393607 ]
{ "id": 0, "code_window": [ " const projectRef = ref as string\n", "\n", " return (\n", " <Panel\n", " noMargin\n", " className={'pb-0 ' + props.className}\n", " bodyClassName=\"h-full\"\n", " wrapWithLoading={false}\n", " >\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " noHideOverflow\n" ], "file_path": "studio/components/interfaces/Reports/ReportWidget.tsx", "type": "add", "edit_start_line_idx": 33 }
import Link from 'next/link' import { useState, useEffect } from 'react' import { useRouter } from 'next/router' import { Button, IconCheckSquare, Loading } from 'ui' import { useStore } from 'hooks' import { auth } from 'lib/gotrue' import { API_URL } from 'lib/constants' import { get, post, delete_ } from 'lib/common/fetch' import { useProfileQuery } from 'data/profile/profile-query' interface ITokenInfo { organization_name?: string | undefined token_does_not_exist?: boolean email_match?: boolean authorized_user?: boolean expired_token?: boolean invite_id?: number } type TokenInfo = ITokenInfo | undefined const JoinOrganizationPage = () => { const router = useRouter() const { slug, token, name } = router.query const { ui, app } = useStore() const { data: profile } = useProfileQuery() const [isSubmitting, setIsSubmitting] = useState(false) const [error, setError] = useState(false) const [tokenValidationInfo, setTokenValidationInfo] = useState<TokenInfo>(undefined) const [tokenInfoLoaded, setTokenInfoLoaded] = useState(false) const { token_does_not_exist, email_match, expired_token, organization_name, invite_id } = tokenValidationInfo || {} const loginRedirectLink = `/?returnTo=${encodeURIComponent(`/join?token=${token}&slug=${slug}`)}` useEffect(() => { const fetchTokenInfo = async () => { await ui.load() const response = await get(`${API_URL}/organizations/${slug}/members/join?token=${token}`) if (response.error) { setError(response.error) setTokenInfoLoaded(true) } else { setTokenInfoLoaded(true) setTokenValidationInfo(response) } } if (!tokenInfoLoaded && token) { fetchTokenInfo() } /** * if params are empty then redirect * user to the homepage of app */ // if (!slug && !token) router.push('/') }, [token, router.asPath]) async function handleJoinOrganization() { setIsSubmitting(true) const response = await post(`${API_URL}/organizations/${slug}/members/join?token=${token}`, {}) if (response.error) { ui.setNotification({ category: 'error', message: `Failed to join organization: ${response.error.message}`, }) setIsSubmitting(false) } else { setIsSubmitting(false) app.onOrgAdded(response) router.push('/') } } async function handleDeclineJoinOrganization() { setIsSubmitting(true) const response = await delete_( `${API_URL}/organizations/${slug}/members/invite?invited_id=${invite_id}`, {} ) if (response.error) { ui.setNotification({ category: 'error', message: `Failed to decline invitation: ${response.error.message}`, }) setIsSubmitting(false) } else { setIsSubmitting(false) router.push('/') } } const isError = error || !!(tokenInfoLoaded && token_does_not_exist) || (tokenInfoLoaded && !email_match) || (tokenInfoLoaded && expired_token) const ErrorMessage = () => { const Container = ({ children }: { children: React.ReactNode }) => ( <div className={[ 'flex flex-col items-center justify-center gap-3 text-sm', isError ? 'text-scale-1100' : 'text-scale-1200', ].join(' ')} > {children} </div> ) const message = error ? ( <p>There was an error requesting details for this invitation.</p> ) : token_does_not_exist ? ( <> <p>The invite token is invalid.</p> <p className="text-scale-900"> Try copying and pasting the link from the invite email, or ask the organization owner to invite you again. </p> </> ) : !email_match ? ( <> <p> Your email address {profile?.primary_email} does not match the email address this invitation was sent to. </p> <p className="text-scale-900"> To accept this invitation, you will need to{' '} <a className="cursor-pointer text-brand-900" onClick={async () => { await auth.signOut() router.reload() }} > sign out </a>{' '} and then sign in or create a new account using the same email address used in the invitation. </p> </> ) : expired_token ? ( <> <p>The invite token has expired.</p> <p className="text-scale-900">Please request a new one from the organization owner.</p> </> ) : ( '' ) return isError ? <Container>{message}</Container> : null } const Content = () => ( <> <div className="flex flex-col gap-2 px-6 py-8"> <> <p className="text-sm text-scale-1200">You have been invited to join </p> {organization_name ? ( <> <p className="text-3xl text-scale-1200"> {name ? name : organization_name ? `${organization_name}` : 'an organization'} </p> {!token_does_not_exist && ( <p className="text-sm text-scale-900">an organization on Supabase</p> )} </> ) : ( <> <p className="text-3xl text-scale-1200">{'an organization'}</p> </> )} {slug && <p className="text-xs text-scale-900">{`organization slug: ${slug}`}</p>} </> </div> <div className={['border-t border-scale-400', isError ? 'bg-sand-100' : 'bg-transparent'].join( ' ' )} > <div className="flex flex-col gap-4 px-6 py-4 "> {profile && !isError && ( <div className="flex flex-row items-center justify-center gap-3"> <Button onClick={handleDeclineJoinOrganization} htmlType="submit" type="default"> Decline </Button> <Button onClick={handleJoinOrganization} htmlType="submit" loading={isSubmitting} type="primary" icon={<IconCheckSquare />} > Join organization </Button> </div> )} {tokenInfoLoaded && <ErrorMessage />} {!profile && ( <div className="flex flex-col gap-3"> <p className="text-xs text-scale-900"> You will need to sign in to accept this invitation </p> <div className="flex justify-center gap-3"> <Link passHref href={loginRedirectLink}> <Button as="a" type="default"> Sign in </Button> </Link> <Link passHref href={loginRedirectLink}> <Button as="a" type="default"> Create an account </Button> </Link> </div> </div> )} </div> </div> </> ) return ( <div className={[ 'flex h-full min-h-screen bg-scale-200', 'w-full flex-col place-items-center', 'items-center justify-center gap-8 px-5', ].join(' ')} > <Link href="/projects"> <a className="flex items-center justify-center gap-4"> <img src="/img/supabase-logo.svg" alt="Supabase" className="block h-[24px] cursor-pointer rounded" /> </a> </Link> <div className=" mx-auto overflow-hidden rounded-md border border-scale-400 bg-scale-100 text-center shadow md:w-[400px] " > <Loading active={!tokenInfoLoaded}> <Content /> </Loading> </div> </div> ) } export default JoinOrganizationPage
studio/pages/join/index.tsx
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0002756257599685341, 0.00017529874457977712, 0.00016653252532705665, 0.00017235301493201405, 0.000019876315491274 ]
{ "id": 0, "code_window": [ " const projectRef = ref as string\n", "\n", " return (\n", " <Panel\n", " noMargin\n", " className={'pb-0 ' + props.className}\n", " bodyClassName=\"h-full\"\n", " wrapWithLoading={false}\n", " >\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " noHideOverflow\n" ], "file_path": "studio/components/interfaces/Reports/ReportWidget.tsx", "type": "add", "edit_start_line_idx": 33 }
export { default as IconVolume } from './IconVolume'
packages/ui/src/components/Icon/icons/IconVolume/index.tsx
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017622245650272816, 0.00017622245650272816, 0.00017622245650272816, 0.00017622245650272816, 0 ]
{ "id": 0, "code_window": [ " const projectRef = ref as string\n", "\n", " return (\n", " <Panel\n", " noMargin\n", " className={'pb-0 ' + props.className}\n", " bodyClassName=\"h-full\"\n", " wrapWithLoading={false}\n", " >\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " noHideOverflow\n" ], "file_path": "studio/components/interfaces/Reports/ReportWidget.tsx", "type": "add", "edit_start_line_idx": 33 }
import { observer } from 'mobx-react-lite' import { PermissionAction } from '@supabase/shared-types/out/constants' import { NextPageWithLayout } from 'types' import { checkPermissions } from 'hooks' import { DatabaseLayout } from 'components/layouts' import { Extensions } from 'components/interfaces/Database' import NoPermission from 'components/ui/NoPermission' const DatabaseExtensions: NextPageWithLayout = () => { const canReadExtensions = checkPermissions(PermissionAction.TENANT_SQL_ADMIN_READ, 'extensions') if (!canReadExtensions) { return <NoPermission isFullPage resourceText="view database extensions" /> } return <Extensions /> } DatabaseExtensions.getLayout = (page) => <DatabaseLayout title="Database">{page}</DatabaseLayout> export default observer(DatabaseExtensions)
studio/pages/project/[ref]/database/extensions.tsx
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017586442118044943, 0.00017486298747826368, 0.00017435521294828504, 0.0001743693428579718, 7.081406465658802e-7 ]
{ "id": 1, "code_window": [ " size=\"small\"\n", " minimalHeader\n", " highlightedValue={total}\n", " className=\"w-full h-42\"\n", " data={props.data}\n", " yAxisKey=\"count\"\n", " xAxisKey=\"timestamp\"\n" ], "labels": [ "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " className=\"w-full\"\n" ], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "replace", "edit_start_line_idx": 17 }
import { Loading } from 'ui' import React, { ReactNode } from 'react' interface Props { bodyClassName?: string children?: ReactNode className?: string footer?: JSX.Element | false hideHeaderStyling?: boolean loading?: boolean noMargin?: boolean title?: JSX.Element | false wrapWithLoading?: boolean } function Panel(props: Props) { let headerClasses: string[] = [] if (!props.hideHeaderStyling) { headerClasses = [ ` bg-panel-header-light dark:bg-panel-header-dark border-b border-panel-border-light dark:border-panel-border-dark`, ] } else { headerClasses = [ ` bg-panel-body-light dark:bg-panel-body-dark`, ] } const content = ( <div className={` overflow-hidden rounded-md border border-panel-border-light shadow-sm dark:border-panel-border-dark ${props.noMargin ? '' : 'mb-8'} ${props.className}`} > {props.title && ( <div className={headerClasses.join(' ')}> <div className="flex items-center px-6 py-4">{props.title}</div> </div> )} <div className={`bg-panel-body-light dark:bg-panel-body-dark ${props.bodyClassName || ''}`}> {props.children} </div> {props.footer && ( <div className=" border-t border-panel-border-interior-light bg-panel-footer-light dark:border-panel-border-interior-dark dark:bg-panel-footer-dark" > <div className="flex h-12 items-center px-6">{props.footer}</div> </div> )} </div> ) if (props.wrapWithLoading === false) { return content } return <Loading active={Boolean(props.loading)}>{content}</Loading> } function Content({ children, className }: { children: ReactNode; className?: string | false }) { let classes = ['px-6 py-4'] if (className) classes.push(className) return <div className={classes.join(' ')}>{children}</div> } Panel.Content = Content export default Panel
studio/components/ui/Panel.tsx
1
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.006919560953974724, 0.001469035749323666, 0.00016937439795583487, 0.0005436618230305612, 0.0021378991659730673 ]
{ "id": 1, "code_window": [ " size=\"small\"\n", " minimalHeader\n", " highlightedValue={total}\n", " className=\"w-full h-42\"\n", " data={props.data}\n", " yAxisKey=\"count\"\n", " xAxisKey=\"timestamp\"\n" ], "labels": [ "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " className=\"w-full\"\n" ], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "replace", "edit_start_line_idx": 17 }
export default function SidebarCategory(name: string, items: string[]) { return `{ type: 'category', label: '${name}', items: [${items.join(', ')}], collapsed: true, }` }
apps/docs/generator/legacy/components/SidebarCategory.ts
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017333164578303695, 0.00017333164578303695, 0.00017333164578303695, 0.00017333164578303695, 0 ]
{ "id": 1, "code_window": [ " size=\"small\"\n", " minimalHeader\n", " highlightedValue={total}\n", " className=\"w-full h-42\"\n", " data={props.data}\n", " yAxisKey=\"count\"\n", " xAxisKey=\"timestamp\"\n" ], "labels": [ "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " className=\"w-full\"\n" ], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "replace", "edit_start_line_idx": 17 }
import BackwardIterator from './BackwardIterator' export default function getPgsqlCompletionProvider(monaco, sqlEditorStore) { return { triggerCharacters: [' ', '.', '"'], provideCompletionItems: function (model, position, context) { try { // position.column should minus 2 as it returns 2 for first char // position.lineNumber should minus 1 let iterator = new BackwardIterator(model, position.column - 2, position.lineNumber - 1) if (context.triggerCharacter === '"') { return startingQuoteScenarioSuggestions(monaco, sqlEditorStore, iterator) } else if (context.triggerCharacter === '.') { return dotScenarioSuggestions(monaco, sqlEditorStore, iterator) } else { return defaultScenarioSuggestions(monaco, sqlEditorStore) } } catch (_) { // any error, returns empty suggestion return { suggestions: [] } } }, } } function startingQuoteScenarioSuggestions(monaco, sqlEditorStore, iterator) { const items = [] let startingQuotedIdent = iterator.isFowardDQuote() if (!startingQuotedIdent) return { suggestions: items } iterator.next() // get passed the starting quote if (iterator.isNextPeriod()) { // probably a field - get the ident let ident = iterator.readIdent() let isQuotedIdent = false if (ident.match(/^\".*?\"$/)) { isQuotedIdent = true ident = fixQuotedIdent(ident) } let table = sqlEditorStore.tableCache.find((tbl) => { return ( (isQuotedIdent && tbl.tablename === ident) || (!isQuotedIdent && tbl.tablename.toLocaleLowerCase() == ident.toLocaleLowerCase()) ) }) if (!table) return { suggestions: items } table.columns.forEach((field) => { items.push({ label: field.attname, kind: monaco.languages.CompletionItemKind.Property, detail: field.data_type, insertText: field.attname, }) }) } else { // probably a table - list the tables sqlEditorStore.tableCache.forEach((table) => { items.push({ label: table.tablename, kind: monaco.languages.CompletionItemKind.Class, insertText: table.tablename, }) }) } return { suggestions: items } } function dotScenarioSuggestions(monaco, sqlEditorStore, iterator) { const items = [] let idents = readIdents(iterator, 3) let pos = 0 let schema = sqlEditorStore.schemaCache.find((sch) => { const _ident = idents && idents.length > pos ? idents[pos] : {} return ( (_ident.isQuoted && sch.name === _ident.name) || (!_ident.isQuoted && sch.name?.toLocaleLowerCase() == _ident.name?.toLocaleLowerCase()) ) }) if (!schema) { schema = sqlEditorStore.schemaCache.find((sch) => { return sch.name == 'public' }) } else { pos++ } if (idents.length == pos) { sqlEditorStore.tableCache.forEach((tbl) => { if (tbl.schemaname != schema.name) { return } items.push({ label: tbl.tablename, kind: monaco.languages.CompletionItemKind.Class, detail: tbl.schemaname !== 'public' ? tbl.schemaname : null, insertText: formatInsertText(tbl.tablename), }) }) return { suggestions: items } } let table = sqlEditorStore.tableCache.find((tbl) => { const _ident = idents && idents.length > pos ? idents[pos] : {} return ( (tbl.schemaname == schema.name && _ident.isQuoted && tbl.tablename === _ident.name) || (!_ident.isQuoted && tbl.tablename?.toLocaleLowerCase() == _ident.name?.toLocaleLowerCase()) ) }) if (table) { table.columns.forEach((field) => { items.push({ label: field.attname, kind: monaco.languages.CompletionItemKind.Property, detail: field.data_type, insertText: formatInsertText(field.attname), }) }) } return { suggestions: items } } function defaultScenarioSuggestions(monaco, sqlEditorStore) { const items = [] if (sqlEditorStore.keywordCache?.length > 0) { sqlEditorStore.keywordCache.forEach((x) => { items.push({ label: x, kind: monaco.languages.CompletionItemKind.Keyword, insertText: x, }) }) } if (sqlEditorStore.schemaCache?.length > 0) { sqlEditorStore.schemaCache.forEach((x) => { items.push({ label: x.name, kind: monaco.languages.CompletionItemKind.Keyword, insertText: x.name, }) }) } if (sqlEditorStore.tableCache?.length > 0) { sqlEditorStore.tableCache.forEach((x) => { const insertText = x.schemaname == 'public' ? x.tablename : x.schemaname + '.' + x.tablename items.push({ label: x.tablename, detail: x.schemaname !== 'public' ? x.schemaname : null, kind: x.is_table ? monaco.languages.CompletionItemKind.Class : monaco.languages.CompletionItemKind.Interface, insertText: formatInsertText(insertText), }) x.columns.forEach((field) => { if (!field) return let foundItem = items.find( (i) => i.label === field?.attname && i.kind === monaco.languages.CompletionItemKind.Field && i.detail === field?.data_type ) if (foundItem) { foundItem.tables.push(x.tablename) foundItem.tables.sort() foundItem.documentation = foundItem.tables.join(', ') } else { items.push({ label: field.attname, kind: monaco.languages.CompletionItemKind.Field, detail: field.data_type, documentation: x.tablename, tables: [x.tablename], insertText: formatInsertText(field.attname), }) } }) }) } if (sqlEditorStore.functionCache?.length > 0) { sqlEditorStore.functionCache.forEach((x) => { items.push({ label: x.name, kind: monaco.languages.CompletionItemKind.Function, detail: x.result_type, documentation: x.description, insertText: x.name, }) }) } return { suggestions: items } } function fixQuotedIdent(str) { return str.replace(/^\"/, '').replace(/\"$/, '').replace(/\"\"/, '"') } function readIdents(iterator, maxlvl) { return iterator.readIdents(maxlvl).map((name) => { let isQuoted = false if (name.match(/^\".*?\"$/)) { isQuoted = true name = fixQuotedIdent(name) } return { isQuoted: isQuoted, name: name } }) } function formatInsertText(value) { const hasUpperCase = !(value == value.toLowerCase()) return hasUpperCase ? `"${value}"` : value }
studio/components/to-be-cleaned/SqlEditor/PgsqlCompletionProvider.js
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0001771453389665112, 0.00017320913320872933, 0.00016581475210841745, 0.00017471799219492823, 0.00000317207718580903 ]
{ "id": 1, "code_window": [ " size=\"small\"\n", " minimalHeader\n", " highlightedValue={total}\n", " className=\"w-full h-42\"\n", " data={props.data}\n", " yAxisKey=\"count\"\n", " xAxisKey=\"timestamp\"\n" ], "labels": [ "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " className=\"w-full\"\n" ], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "replace", "edit_start_line_idx": 17 }
/// <reference types="next" /> /// <reference types="next/image-types/global" /> // NOTE: This file should not be edited // see https://nextjs.org/docs/basic-features/typescript for more information.
apps/docs/next-env.d.ts
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0001779591548256576, 0.0001779591548256576, 0.0001779591548256576, 0.0001779591548256576, 0 ]
{ "id": 2, "code_window": [ " <BarChart\n", " size=\"small\"\n", " minimalHeader\n", " highlightedValue={total}\n" ], "labels": [ "keep", "keep", "add", "keep" ], "after_edit": [ " className=\"w-full\"\n" ], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "add", "edit_start_line_idx": 39 }
import { NextRouter, useRouter } from 'next/router' import * as Tooltip from '@radix-ui/react-tooltip' import { Button, IconExternalLink, IconHelpCircle } from 'ui' import { BaseReportParams } from './Reports.types' import { LogsEndpointParams } from '../Settings/Logs' import Panel from 'components/ui/Panel' import LoadingOpacity from 'components/ui/LoadingOpacity' export interface ReportWidgetProps<T = any> { data: T[] title: string description?: string tooltip?: string className?: string renderer: (props: ReportWidgetRendererProps) => React.ReactNode params: BaseReportParams | LogsEndpointParams isLoading: boolean } export interface ReportWidgetRendererProps extends ReportWidgetProps { router: NextRouter projectRef: string } const ReportWidget: React.FC<ReportWidgetProps> = (props) => { const router = useRouter() const { ref } = router.query const projectRef = ref as string return ( <Panel noMargin className={'pb-0 ' + props.className} bodyClassName="h-full" wrapWithLoading={false} > <Panel.Content className="space-y-4"> <div className="flex flex-row items-start justify-between"> <div className="gap-2"> <div className="flex flex-row gap-2"> <h3 className="w-full h-6">{props.title}</h3>{' '} {props?.tooltip && ( <Tooltip.Root delayDuration={0}> <Tooltip.Trigger> <IconHelpCircle className="text-scale-1100" size="tiny" strokeWidth={1.5} /> </Tooltip.Trigger> <Tooltip.Content side="bottom"> <Tooltip.Arrow className="radix-tooltip-arrow" /> <div className={[ 'rounded bg-scale-100 py-1 px-2 max-w-xs leading-none shadow', 'border border-scale-200', ].join(' ')} > <span className="text-xs text-scale-1200">{props.tooltip}</span> </div> </Tooltip.Content> </Tooltip.Root> )} </div> <p className="text-sm text-scale-1100">{props.description}</p> </div> <Tooltip.Root delayDuration={0}> <Tooltip.Trigger> <Button type="default" icon={<IconExternalLink strokeWidth={1.5} />} className="px-1" onClick={() => { router.push({ pathname: `/project/${projectRef}/logs/explorer`, query: { q: props.params?.sql, its: props.params.iso_timestamp_start, ite: props.params.iso_timestamp_end, }, }) }} /> </Tooltip.Trigger> <Tooltip.Content side="bottom"> <Tooltip.Arrow className="radix-tooltip-arrow" /> <div className={[ 'rounded bg-scale-100 py-1 px-2 max-w-xs leading-none shadow', 'border border-scale-200', ].join(' ')} > <span className="text-xs text-scale-1200">Open in Logs Explorer</span> </div> </Tooltip.Content> </Tooltip.Root> </div> <LoadingOpacity className="w-full" active={props.isLoading}> {props.data === undefined ? null : props.renderer({ ...props, router, projectRef })} </LoadingOpacity> </Panel.Content> </Panel> ) } export default ReportWidget
studio/components/interfaces/Reports/ReportWidget.tsx
1
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00023228806094266474, 0.00017605925677344203, 0.0001648961624596268, 0.0001719047868391499, 0.000018093749531544745 ]
{ "id": 2, "code_window": [ " <BarChart\n", " size=\"small\"\n", " minimalHeader\n", " highlightedValue={total}\n" ], "labels": [ "keep", "keep", "add", "keep" ], "after_edit": [ " className=\"w-full\"\n" ], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "add", "edit_start_line_idx": 39 }
import { observer } from 'mobx-react-lite' import { FC, useEffect } from 'react' import { Loading } from 'ui' import { SettingsLayout } from 'components/layouts' import LoadingUI from 'components/ui/Loading' import OveragesBanner from 'components/ui/OveragesBanner/OveragesBanner' import { useStore } from 'hooks' import { useProjectSubscriptionQuery } from 'data/subscriptions/project-subscription-query' import { NextPageWithLayout, Project } from 'types' import { Subscription } from 'components/interfaces/Billing' const ProjectBilling: NextPageWithLayout = () => { const { ui } = useStore() const project = ui.selectedProject return ( <div className="w-full h-full overflow-y-auto content"> <div className="w-full mx-auto"> <Settings project={project} /> </div> </div> ) } ProjectBilling.getLayout = (page) => ( <SettingsLayout title="Billing and Usage">{page}</SettingsLayout> ) export default observer(ProjectBilling) interface SettingsProps { project?: Project } const Settings: FC<SettingsProps> = ({ project }) => { const { ui } = useStore() const { data: subscription, isLoading: loading, error, } = useProjectSubscriptionQuery({ projectRef: ui.selectedProject?.ref }) useEffect(() => { if (error) { ui.setNotification({ category: 'error', message: `Failed to get project subscription: ${(error as any)?.message ?? 'unknown'}`, }) } }, [error]) if (!subscription) { return <LoadingUI /> } return ( <div className="container max-w-4xl p-4 space-y-8"> {/* [Joshen TODO] Temporarily hidden until usage endpoint is sorted out */} {/* {projectTier !== undefined && <OveragesBanner tier={projectTier} />} */} <Subscription loading={loading} project={project} subscription={subscription} currentPeriodStart={subscription?.billing.current_period_start} currentPeriodEnd={subscription?.billing.current_period_end} /> {loading ? ( <Loading active={loading}> <div className="w-full mb-8 overflow-hidden border rounded border-panel-border-light dark:border-panel-border-dark"> <div className="flex items-center justify-center px-6 py-6 bg-panel-body-light dark:bg-panel-body-dark"> <p>Loading usage breakdown</p> </div> </div> </Loading> ) : ( <></> )} </div> ) }
studio/pages/project/[ref]/settings/billing/subscription.tsx
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017602514708414674, 0.0001711254590190947, 0.00016522874648217112, 0.0001702419394860044, 0.0000031186591513687745 ]
{ "id": 2, "code_window": [ " <BarChart\n", " size=\"small\"\n", " minimalHeader\n", " highlightedValue={total}\n" ], "labels": [ "keep", "keep", "add", "keep" ], "after_edit": [ " className=\"w-full\"\n" ], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "add", "edit_start_line_idx": 39 }
<p align="center"> <img width="300" src="https://raw.githubusercontent.com/supabase/supabase/master/packages/common/assets/images/supabase-logo-wordmark--light.svg#gh-light-mode-only"> <img width="300" src="https://raw.githubusercontent.com/supabase/supabase/master/packages/common/assets/images/supabase-logo-wordmark--dark.svg#gh-dark-mode-only"> </p> --- # Supabase [Supabase](https://supabase.com) är ett open source-alternativ till Firebase. Vi bygger Firebase funktioner med hjälp av verktyg i företagsklass med öppen källkod. - [x] Hostad Postgres-databas - [x] Realtids-prenumerationer - [x] Autentisering och auktorisering - [x] Auto-genererade APIer - [x] Kontrollpanel - [x] Lagring - [x] Funktioner ![Supabase Dashboard](https://raw.githubusercontent.com/supabase/supabase/master/apps/www/public/images/github/supabase-dashboard.png) ## Dokumentation För fullständig dokumentation, besök [supabase.com/docs](https://supabase.com/docs) ## Community & Support - [Community-forum](https://github.com/supabase/supabase/discussions). Bäst för: Hjälp med att utveckla lösningar och diskussioner om bästa praxis vid databasutveckling. - [GitHub Issues](https://github.com/supabase/supabase/issues). Bäst för: Buggar och fel du stöter på när du använder Supabase. - [E-post-support](https://supabase.com/docs/support#business-support). Bäst för: Problem med din databas eller infrastruktur. ## Status - [x] Alpha: Vi testar Supabase med ett begränsat antal kunder - [x] Offentlig alpha: Vem som helst kan anmäla sig på [app.supabase.com](https://app.supabase.com). Observera att vissa fel och problem kan uppstå. - [x] Offentlig beta: Stabil nog för de flesta icke-Enterprise-ändamål - [ ] Offentlig: Redo för produktion Vi är för närvarande i offentlig beta. Bevaka "releases" i detta repo för att få notifikationer vid större uppdateringar. <kbd><img src="https://raw.githubusercontent.com/supabase/supabase/d5f7f413ab356dc1a92075cb3cee4e40a957d5b1/web/static/watch-repo.gif" alt="Bevaka detta repo"/></kbd> --- ## Hur det fungerar Supabase är en samling verktyg med öppen källkod. Vi bygger funktionerna som finns i Firebase med hjälp av produkter i företagsklass, med öppen källkod. Om verktygen och communityn finns, med en MIT, Apache 2 eller motsvarande öppen licens, kommer vi att använda och stödja det verktyget. Om verktyget inte finns, bygger vi det själva och släpper det fritt med öppen källkod. Supabase är inte en 1-till-1-mappning av Firebase. Vårt mål är att ge utvecklare en Firebase-liknande utvecklarupplevelse med hjälp av verktyg med öppen källkod. **Nuvarande arkitektur** Supabase är en [hostad plattform](https://app.supabase.com). Du kan registrera dig och börja använda Supabase utan att installera någonting. Vi håller fortfarande på att förbättra den lokala utvecklarupplevelsen - detta är för närvarande vårt huvudfokus, tillsammans med plattformens övergripande stabilitet. ![Arkitektur](https://user-images.githubusercontent.com/70828596/187547862-ffa9d058-0c3a-4851-a3e7-92ccfca4b596.png) - [PostgreSQL](https://www.postgresql.org/) är en objektrelationsdatabas med över 30 års aktiv utveckling , vilket har gett den ett gott rykte som pålitlig, robust och högpresterande. - [Realtime](https://github.com/supabase/realtime) är en Elexir-server som låter dig lyssna på skapande, uppdateringar och borttagningar i PostgreSQL med hjälp av websockets. Supabase lyssnar på PostgreSQL´s inbyggda replikeringsfunktionalitet, konverterar replikerings-byte-strömmen till JSON och sänder sedan JSON via websockets. - [PostgREST](http://postgrest.org/) är en webbserver som omvandlar din PostgreSQL-databas direkt till ett REST-API. - [Storage](https://github.com/supabase/storage-api) tillhandahåller ett REST-API för att administrera filer sparade i Amazon S3. Postgres används för att hantera filrättigheterna. - [postgres-meta](https://github.com/supabase/postgres-meta) är ett REST-API för att administrera din Postgres-databas. Detta ger dig möjlighet att hämta tabeller, lägga till roller, utföra frågor etc. - [GoTrue](https://github.com/netlify/gotrue) är ett SWT-baserat API för att hantera användare och utfärda SWT-tokens. - [Kong](https://github.com/Kong/kong) är en moln-baserad API-gateway. #### Klientbibliotek Vårt klientbibliotek är modulärt. Varje underbibliotek är en fristående implementering för ett specifikt externt system. Detta är ett av de sätt vi stödjer befintliga verktyg på. - **`supabase-{lang}`**: Kombinerar bibliotek och och berikar existerande funktionalitet. - `postgrest-{lang}`: Klientbibliotek för att arbeta med [PostgREST](https://github.com/postgrest/postgrest) - `realtime-{lang}`: Klientbibliotek för att arbeta med [Realtime](https://github.com/supabase/realtime) - `gotrue-{lang}`: Klientbibliotek för att arbeta med [GoTrue](https://github.com/netlify/gotrue) | Repo | Officiellt | Community | | --------------------- | ------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **`supabase-{lang}`** | [`JS`](https://github.com/supabase/supabase-js) | [`C#`](https://github.com/supabase/supabase-csharp) \| [`Flutter`](https://github.com/supabase/supabase-flutter) \| [`Python`](https://github.com/supabase/supabase-py) \| `Rust` \| [`Ruby`](https://github.com/supabase/supabase-rb) | | `postgrest-{lang}` | [`JS`](https://github.com/supabase/postgrest-js) | [`C#`](https://github.com/supabase/postgrest-csharp) \| [`Dart`](https://github.com/supabase/postgrest-dart) \| [`Python`](https://github.com/supabase/postgrest-py) \| [`Rust`](https://github.com/supabase/postgrest-rs) \| [`Ruby`](https://github.com/supabase/postgrest-rb) | | `realtime-{lang}` | [`JS`](https://github.com/supabase/realtime-js) | [`C#`](https://github.com/supabase/realtime-csharp) \| [`Dart`](https://github.com/supabase/realtime-dart) \| [`Python`](https://github.com/supabase/realtime-py) \| `Rust` \| `Ruby` | | `gotrue-{lang}` | [`JS`](https://github.com/supabase/gotrue-js) | [`C#`](https://github.com/supabase/gotrue-csharp) \| [`Dart`](https://github.com/supabase/gotrue-dart) \| [`Python`](https://github.com/supabase/gotrue-py) \| `Rust` \| `Ruby` | <!--- Remove this list if you're traslating to another language, it's hard to keep updated across multiple files--> <!--- Keep only the link to the list of translation files--> ## Översättningar - [Lista med översättningar](/i18n/languages.md) <!--- Keep only this --> --- ## Sponsorer [![Nya sponsorer](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/supabase)
i18n/README.sv.md
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.001617136411368847, 0.0003132840502075851, 0.00016353548562619835, 0.00016726026660762727, 0.00043464318150654435 ]
{ "id": 2, "code_window": [ " <BarChart\n", " size=\"small\"\n", " minimalHeader\n", " highlightedValue={total}\n" ], "labels": [ "keep", "keep", "add", "keep" ], "after_edit": [ " className=\"w-full\"\n" ], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "add", "edit_start_line_idx": 39 }
import Layout from '~/layouts/DefaultGuideLayout' export const meta = { id: 'uuid-ossp', title: 'uuid-ossp: Unique Identifiers', description: 'A UUID generator for PostgreSQL.', } The `uuid-ossp` extension can be used to generate a `UUID`. ## Overview A `UUID` is a "Universally Unique Identifier" and it is, for practical purposes, unique. This makes them particularly well suited as Primary Keys. It is occasionally referred to as a `GUID`, which stands for "Globally Unique Identifier". ## Enable the extension <Tabs scrollable size="small" type="underlined" defaultActiveId="dashboard" > <TabPanel id="dashboard" label="Dashboard"> 1. Go to the [Database](https://app.supabase.com/project/_/database/tables) page in the Dashboard. 2. Click on **Extensions** in the sidebar. 3. Search for "uuid-ossp" and enable the extension. **Note**: Currently `uuid-ossp` extension is enabled by default and cannot be disabled. </TabPanel> <TabPanel id="sql" label="SQL"> ```sql -- Example: enable the "uuid-ossp" extension create extension "uuid-ossp" with schema extensions; -- Example: disable the "uuid-ossp" extension drop extension if exists "uuid-ossp"; ``` Even though the SQL code is `create extension`, this is the equivalent of "enabling the extension". To disable an extension, call `drop extension`. It's good practice to create the extension within a separate schema (like `extensions`) to keep the `public` schema clean. **Note**: Currently `uuid-ossp` extension is enabled by default and cannot be disabled. </TabPanel> </Tabs> ## The `uuid` type Once the extension is enabled, you now have access to a `uuid` type. ## `uuid_generate_v1()` Creates a UUID value based on the combination of computer’s MAC address, current timestamp, and a random value. <Admonition type="note"> UUIDv1 leaks identifiable details, which might make it unsuitable for certain security-sensitive applications. </Admonition> ## `uuid_generate_v4()` Creates UUID values based solely on random numbers. You can also use Postgres's built-in [`gen_random_uuid()`](https://www.postgresql.org/docs/current/functions-uuid.html) function to generate a UUIDv4. ## Examples ### Within a query ```sql select uuid_generate_v4(); ``` ### As a Primary Key Automatically create a unique, random ID in a table: ```sql create table contacts ( id uuid default uuid_generate_v4(), first_name text, last_name text, primary key (id) ); ``` ## Resources - [Choosing a Postgres Primary Key](https://supabase.com/blog/choosing-a-postgres-primary-key) - [The Basics Of PostgreSQL `UUID` Data Type](https://www.postgresqltutorial.com/postgresql-uuid/) export const Page = ({ children }) => <Layout meta={meta} children={children} /> export default Page
apps/docs/pages/guides/database/extensions/uuid-ossp.mdx
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0001930442958837375, 0.00017029720766004175, 0.00016364998009521514, 0.0001685996976448223, 0.00000785546399129089 ]
{ "id": 3, "code_window": [ " highlightedValue={total}\n", " className=\"w-full h-42\"\n", " data={props.data}\n", " yAxisKey=\"count\"\n", " xAxisKey=\"timestamp\"\n" ], "labels": [ "keep", "replace", "keep", "keep", "keep" ], "after_edit": [], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "replace", "edit_start_line_idx": 40 }
import { DATETIME_FORMAT } from 'components/interfaces/Reports/Reports.constants' import dayjs from 'dayjs' import React, { useMemo } from 'react' import { ResponsiveContainer } from 'recharts' import { DateTimeFormats } from './Charts.constants' import { CommonChartProps, StackedChartProps } from './Charts.types' import utc from 'dayjs/plugin/utc' dayjs.extend(utc) /** * Auto formats a number to a default precision if it is a float * * @example * numberFormatter(123) // "123" * numberFormatter(123.123) // "123.12" * numberFormatter(123, 2) // "123.00" */ export const numberFormatter = (num: number, precision = 2) => isFloat(num) ? precisionFormatter(num, precision) : String(num) /** * Tests if a number is a float. * * @example * isFloat(123) // false * isFloat(123.123) // true */ export const isFloat = (num: number) => String(num).includes('.') /** * Formats a number to a particular precision. * * @example * precisionFormatter(123, 2) // "123.00" * precisionFormatter(123.123, 2) // "123.12" */ export const precisionFormatter = (num: number, precision: number): string => { if (isFloat(num)) { const [head, tail] = String(num).split('.') return head + '.' + tail.slice(0, precision) } else { // pad int with 0 return String(num) + '.' + '0'.repeat(precision) } } /** * Formats a timestamp. * Optionally formats the string to UTC * @param value * @param format * @param utc * @returns */ export const timestampFormatter = ( value: string, format: string = DateTimeFormats.FULL, utc: boolean = false ) => { if (utc) { return dayjs.utc(value).format(format) } return dayjs(value).format(format) } /** * Hook to create common wrapping components, perform data transformations * returns a Container component and the minHeight set */ export const useChartSize = ( size: CommonChartProps<any>['size'] = 'normal', sizeMap: { small: number normal: number large: number } = { small: 120, normal: 160, large: 280 } ) => { const minHeight = sizeMap[size] const Container: React.FC = useMemo( () => ({ children }) => ( <ResponsiveContainer height={minHeight} minHeight={minHeight} width="100%"> {children as JSX.Element} </ResponsiveContainer> ), [size] ) return { Container, minHeight, } } /** * Transforms data points into a stacked data structure that can be consumed by recharts */ export const useStacked = ({ data, xAxisKey, yAxisKey, stackKey, variant = 'values', }: Pick<StackedChartProps<any>, 'xAxisKey' | 'yAxisKey' | 'stackKey'> & { variant?: 'values' | 'percentages' } & Pick<CommonChartProps<Record<string, number>>, 'data'>) => { const stackedData = useMemo(() => { if (!data) return [] const mapping = data.reduce((acc, datum) => { const x = datum[xAxisKey] const y = datum[yAxisKey] const s = datum[stackKey] if (!acc[x]) { acc[x] = {} } acc[x][s] = y return acc }, {} as Record<string, Record<string, number>>) const flattened = Object.entries(mapping).map(([x, sMap]) => ({ ...sMap, [xAxisKey]: Number.isNaN(Number(x)) ? x : Number(x), })) return flattened }, [JSON.stringify(data)]) const dataKeys = useMemo(() => { return Object.keys(stackedData[0] || {}) .filter((k) => k !== xAxisKey && k !== yAxisKey) .sort() }, [JSON.stringify(stackedData[0] || {})]) const percentagesStackedData = useMemo(() => { if (variant !== 'percentages') return return stackedData.map((stack) => { const entries = Object.entries(stack) as Array<[string, number]> let map const sum = entries .filter(([key, _value]) => dataKeys.includes(key)) .reduce((acc, [_key, value]) => acc + value, 0) map = entries.reduce((acc, [key, value]) => { if (!dataKeys.includes(key)) { return { ...acc, [key]: value } } return { ...acc, [key]: value !== 0 ? value / sum : 0 } }, {} as any) return map }) }, [JSON.stringify(stackedData)]) return { dataKeys, stackedData, percentagesStackedData } }
studio/components/ui/Charts/Charts.utils.tsx
1
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.015252216719090939, 0.0018132374389097095, 0.00016646711446810514, 0.00017211830709129572, 0.003917195834219456 ]
{ "id": 3, "code_window": [ " highlightedValue={total}\n", " className=\"w-full h-42\"\n", " data={props.data}\n", " yAxisKey=\"count\"\n", " xAxisKey=\"timestamp\"\n" ], "labels": [ "keep", "replace", "keep", "keep", "keep" ], "after_edit": [], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "replace", "edit_start_line_idx": 40 }
export { default as IconAlignRight } from './IconAlignRight'
packages/ui/src/components/Icon/icons/IconAlignRight/index.tsx
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017020071391016245, 0.00017020071391016245, 0.00017020071391016245, 0.00017020071391016245, 0 ]
{ "id": 3, "code_window": [ " highlightedValue={total}\n", " className=\"w-full h-42\"\n", " data={props.data}\n", " yAxisKey=\"count\"\n", " xAxisKey=\"timestamp\"\n" ], "labels": [ "keep", "replace", "keep", "keep", "keep" ], "after_edit": [], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "replace", "edit_start_line_idx": 40 }
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # dependencies /node_modules /.pnp .pnp.js # testing /coverage # next.js /.next/ /out/ # production /build # misc .DS_Store *.pem # debug npm-debug.log* yarn-debug.log* yarn-error.log* .pnpm-debug.log* # local env files .env*.local # vercel .vercel # typescript *.tsbuildinfo next-env.d.ts .vscode
examples/caching/with-nextjs-13/.gitignore
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017499210662208498, 0.0001726676127873361, 0.00017055764328688383, 0.00017256036517210305, 0.000002053250227618264 ]
{ "id": 3, "code_window": [ " highlightedValue={total}\n", " className=\"w-full h-42\"\n", " data={props.data}\n", " yAxisKey=\"count\"\n", " xAxisKey=\"timestamp\"\n" ], "labels": [ "keep", "replace", "keep", "keep", "keep" ], "after_edit": [], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "replace", "edit_start_line_idx": 40 }
module.exports = { extends: ["next", "prettier"], settings: { next: { rootDir: ["apps/*/", "packages/*/"], }, }, rules: { "@next/next/no-html-link-for-pages": "off", "react/jsx-key": "off", }, };
packages/config/eslint-preset.js
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017774529987946153, 0.00017515267245471478, 0.00017256004502996802, 0.00017515267245471478, 0.0000025926274247467518 ]
{ "id": 4, "code_window": [ " size=\"small\"\n", " highlightedValue={lastAvg}\n", " format=\"ms\"\n", " minimalHeader\n", " className=\"w-full h-42\"\n", " data={transformedData}\n", " yAxisKey=\"avg\"\n", " xAxisKey=\"timestamp\"\n", " displayDateInUtc\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ], "after_edit": [ " className=\"w-full\"\n" ], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "replace", "edit_start_line_idx": 68 }
import { DATETIME_FORMAT } from 'components/interfaces/Reports/Reports.constants' import dayjs from 'dayjs' import React, { useMemo } from 'react' import { ResponsiveContainer } from 'recharts' import { DateTimeFormats } from './Charts.constants' import { CommonChartProps, StackedChartProps } from './Charts.types' import utc from 'dayjs/plugin/utc' dayjs.extend(utc) /** * Auto formats a number to a default precision if it is a float * * @example * numberFormatter(123) // "123" * numberFormatter(123.123) // "123.12" * numberFormatter(123, 2) // "123.00" */ export const numberFormatter = (num: number, precision = 2) => isFloat(num) ? precisionFormatter(num, precision) : String(num) /** * Tests if a number is a float. * * @example * isFloat(123) // false * isFloat(123.123) // true */ export const isFloat = (num: number) => String(num).includes('.') /** * Formats a number to a particular precision. * * @example * precisionFormatter(123, 2) // "123.00" * precisionFormatter(123.123, 2) // "123.12" */ export const precisionFormatter = (num: number, precision: number): string => { if (isFloat(num)) { const [head, tail] = String(num).split('.') return head + '.' + tail.slice(0, precision) } else { // pad int with 0 return String(num) + '.' + '0'.repeat(precision) } } /** * Formats a timestamp. * Optionally formats the string to UTC * @param value * @param format * @param utc * @returns */ export const timestampFormatter = ( value: string, format: string = DateTimeFormats.FULL, utc: boolean = false ) => { if (utc) { return dayjs.utc(value).format(format) } return dayjs(value).format(format) } /** * Hook to create common wrapping components, perform data transformations * returns a Container component and the minHeight set */ export const useChartSize = ( size: CommonChartProps<any>['size'] = 'normal', sizeMap: { small: number normal: number large: number } = { small: 120, normal: 160, large: 280 } ) => { const minHeight = sizeMap[size] const Container: React.FC = useMemo( () => ({ children }) => ( <ResponsiveContainer height={minHeight} minHeight={minHeight} width="100%"> {children as JSX.Element} </ResponsiveContainer> ), [size] ) return { Container, minHeight, } } /** * Transforms data points into a stacked data structure that can be consumed by recharts */ export const useStacked = ({ data, xAxisKey, yAxisKey, stackKey, variant = 'values', }: Pick<StackedChartProps<any>, 'xAxisKey' | 'yAxisKey' | 'stackKey'> & { variant?: 'values' | 'percentages' } & Pick<CommonChartProps<Record<string, number>>, 'data'>) => { const stackedData = useMemo(() => { if (!data) return [] const mapping = data.reduce((acc, datum) => { const x = datum[xAxisKey] const y = datum[yAxisKey] const s = datum[stackKey] if (!acc[x]) { acc[x] = {} } acc[x][s] = y return acc }, {} as Record<string, Record<string, number>>) const flattened = Object.entries(mapping).map(([x, sMap]) => ({ ...sMap, [xAxisKey]: Number.isNaN(Number(x)) ? x : Number(x), })) return flattened }, [JSON.stringify(data)]) const dataKeys = useMemo(() => { return Object.keys(stackedData[0] || {}) .filter((k) => k !== xAxisKey && k !== yAxisKey) .sort() }, [JSON.stringify(stackedData[0] || {})]) const percentagesStackedData = useMemo(() => { if (variant !== 'percentages') return return stackedData.map((stack) => { const entries = Object.entries(stack) as Array<[string, number]> let map const sum = entries .filter(([key, _value]) => dataKeys.includes(key)) .reduce((acc, [_key, value]) => acc + value, 0) map = entries.reduce((acc, [key, value]) => { if (!dataKeys.includes(key)) { return { ...acc, [key]: value } } return { ...acc, [key]: value !== 0 ? value / sum : 0 } }, {} as any) return map }) }, [JSON.stringify(stackedData)]) return { dataKeys, stackedData, percentagesStackedData } }
studio/components/ui/Charts/Charts.utils.tsx
1
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0022083583753556013, 0.0003722118563018739, 0.00016205986321438104, 0.00017255402053706348, 0.0005338987684808671 ]
{ "id": 4, "code_window": [ " size=\"small\"\n", " highlightedValue={lastAvg}\n", " format=\"ms\"\n", " minimalHeader\n", " className=\"w-full h-42\"\n", " data={transformedData}\n", " yAxisKey=\"avg\"\n", " xAxisKey=\"timestamp\"\n", " displayDateInUtc\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ], "after_edit": [ " className=\"w-full\"\n" ], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "replace", "edit_start_line_idx": 68 }
import { JwtSecretUpdateStatus } from '@supabase/shared-types/out/events' import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query' import { get } from 'lib/common/fetch' import { API_URL } from 'lib/constants' import { useCallback } from 'react' import { configKeys } from './keys' export type JwtSecretUpdatingStatusVariables = { projectRef?: string } export type JwtSecretUpdatingStatusResponse = { changeTrackingId: string | undefined jwtSecretUpdateError: number | null | undefined jwtSecretUpdateProgress: number | null | undefined jwtSecretUpdateStatus: JwtSecretUpdateStatus | undefined } export async function getJwtSecretUpdatingStatus( { projectRef }: JwtSecretUpdatingStatusVariables, signal?: AbortSignal ) { if (!projectRef) { throw new Error('projectRef is required') } const response = await get(`${API_URL}/props/project/${projectRef}/jwt-secret-update-status`, { signal, }) if (response.error) { throw response.error } const meta = response?.jwtSecretUpdateStatus?.meta return { changeTrackingId: meta?.change_tracking_id, jwtSecretUpdateError: meta?.error, jwtSecretUpdateProgress: meta?.progress, jwtSecretUpdateStatus: meta?.status, } as JwtSecretUpdatingStatusResponse } export type JwtSecretUpdatingStatusData = Awaited<ReturnType<typeof getJwtSecretUpdatingStatus>> export type JwtSecretUpdatingStatusError = unknown export const useJwtSecretUpdatingStatusQuery = <TData = JwtSecretUpdatingStatusData>( { projectRef }: JwtSecretUpdatingStatusVariables, { enabled = true, ...options }: UseQueryOptions<JwtSecretUpdatingStatusData, JwtSecretUpdatingStatusError, TData> = {} ) => { const client = useQueryClient() return useQuery<JwtSecretUpdatingStatusData, JwtSecretUpdatingStatusError, TData>( configKeys.jwtSecretUpdatingStatus(projectRef), ({ signal }) => getJwtSecretUpdatingStatus({ projectRef }, signal), { enabled: enabled && typeof projectRef !== 'undefined', refetchInterval(data) { if (!data) { return false } const { jwtSecretUpdateStatus } = data as unknown as JwtSecretUpdatingStatusResponse const interval = jwtSecretUpdateStatus === JwtSecretUpdateStatus.Updating ? 1000 : false return interval }, onSuccess() { client.invalidateQueries(configKeys.postgrest(projectRef)) }, ...options, } ) } export const useJwtSecretUpdatingStatusPrefetch = ({ projectRef, }: JwtSecretUpdatingStatusVariables) => { const client = useQueryClient() return useCallback(() => { if (projectRef) { client.prefetchQuery(configKeys.jwtSecretUpdatingStatus(projectRef), ({ signal }) => getJwtSecretUpdatingStatus({ projectRef }, signal) ) } }, [projectRef]) }
studio/data/config/jwt-secret-updating-status-query.ts
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017678238509688526, 0.0001723846362438053, 0.00016539062198717147, 0.00017324951477348804, 0.0000035108555493934546 ]
{ "id": 4, "code_window": [ " size=\"small\"\n", " highlightedValue={lastAvg}\n", " format=\"ms\"\n", " minimalHeader\n", " className=\"w-full h-42\"\n", " data={transformedData}\n", " yAxisKey=\"avg\"\n", " xAxisKey=\"timestamp\"\n", " displayDateInUtc\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ], "after_edit": [ " className=\"w-full\"\n" ], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "replace", "edit_start_line_idx": 68 }
# Local stores Note: We are looking to deprecate this folder. Do not add any files here
studio/localStores/README.md
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00016843674529809505, 0.00016843674529809505, 0.00016843674529809505, 0.00016843674529809505, 0 ]
{ "id": 4, "code_window": [ " size=\"small\"\n", " highlightedValue={lastAvg}\n", " format=\"ms\"\n", " minimalHeader\n", " className=\"w-full h-42\"\n", " data={transformedData}\n", " yAxisKey=\"avg\"\n", " xAxisKey=\"timestamp\"\n", " displayDateInUtc\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ], "after_edit": [ " className=\"w-full\"\n" ], "file_path": "studio/components/interfaces/Reports/renderers/ApiRenderers.tsx", "type": "replace", "edit_start_line_idx": 68 }
import type { NextApiRequest, NextApiResponse } from 'next' import { readOnly } from './supabaseClient' import { SupaResponse, User } from 'types' import { getAuth0Id, getAuthUser, getIdentity } from 'lib/gotrue' /** * Use this method on api routes to check if user is authenticated and having required permissions. * This method can only be used from the server side. * Member permission is mandatory whenever orgSlug/projectRef query param exists * @param {NextApiRequest} req * @param {NextApiResponse} res * @param {Object} config requireUserDetail: bool, requireOwner: bool * * @returns {Object<user, error, description>} * user null, with error and description if not authenticated or not enough permissions */ export async function apiAuthenticate( req: NextApiRequest, res: NextApiResponse ): Promise<SupaResponse<User>> { if (!req) { return { error: new Error('Request is not available') } as unknown as SupaResponse<User> } if (!res) { return { error: new Error('Response is not available') } as unknown as SupaResponse<User> } const { slug: orgSlug, ref: projectRef } = req.query try { const user = await fetchUser(req, res) if (!user) { return { error: new Error('The user does not exist') } as unknown as SupaResponse<User> } if (orgSlug || projectRef) await checkMemberPermission(req, user) return user } catch (error: any) { console.error('Error at apiAuthenticate', error) return { error: { message: error.message ?? 'unknown' } } as unknown as SupaResponse<User> } } /** * @returns * user with only id prop or detail object. It depends on requireUserDetail config */ async function fetchUser(req: NextApiRequest, res: NextApiResponse): Promise<any> { let user_id_supabase = null let user_id_auth0 = null let gotrue_id = null let email = null const token = req.headers.authorization if (!token) { throw new Error('missing access token') } let { user: gotrue_user, error: authError } = await getAuthUser(token) if (authError) { throw authError } if (gotrue_user !== null) { gotrue_id = gotrue_user?.id email = gotrue_user.email let { identity, error } = getIdentity(gotrue_user) if (error) throw error if (identity?.provider !== undefined) { user_id_auth0 = getAuth0Id(identity?.provider, identity?.id) } } if (user_id_supabase) { return { id: user_id_supabase, primary_email: email, } } const query = readOnly.from('users').select( ` id, auth0_id, primary_email, username, first_name, last_name, mobile, is_alpha_user ` ) const { data } = await query.eq('gotrue_id', gotrue_id).single() return data } async function checkMemberPermission(req: NextApiRequest, user: any) { const org = await getOrganization(req) if (!org) { throw new Error('User organization does not exist') } try { const response = await readOnly .from('members') .select('id') .match({ organization_id: org.id, user_id: user.id }) .single() if (!response || response.status != 200) { throw new Error('The user does not have permission') } return true } catch (error) { throw new Error('The user does not have permission') } } async function getOrganization(req: NextApiRequest) { const { slug: orgSlug, ref: projectRef } = req.query if (!orgSlug && !projectRef) { throw new Error('Not enough info to check user permissions') } if (orgSlug) { const { data } = await readOnly .from('organizations') .select('id') .match({ slug: orgSlug }) .single() return { id: data.id } } if (projectRef) { const { data } = await readOnly .from('projects') .select('organization_id') .match({ ref: projectRef }) .single() return { id: data.organization_id } } return null }
studio/lib/api/apiAuthenticate.ts
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0001775159762473777, 0.00017277298320550472, 0.00016138661885634065, 0.00017409733845852315, 0.000004818394245376112 ]
{ "id": 5, "code_window": [ " </Bar>\n", " </RechartBarChart>\n", " </Container>\n", " {data && (\n", " <div className=\"text-scale-900 -mt-5 flex items-center justify-between text-xs\">\n", " <span>{dayjs(data[0][xAxisKey]).format(customDateFormat)}</span>\n", " <span>{dayjs(data[data?.length - 1]?.[xAxisKey]).format(customDateFormat)}</span>\n", " </div>\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " <div className=\"text-scale-900 -mt-9 flex items-center justify-between text-xs\">\n" ], "file_path": "studio/components/ui/Charts/BarChart.tsx", "type": "replace", "edit_start_line_idx": 123 }
import { DATETIME_FORMAT } from 'components/interfaces/Reports/Reports.constants' import dayjs from 'dayjs' import React, { useMemo } from 'react' import { ResponsiveContainer } from 'recharts' import { DateTimeFormats } from './Charts.constants' import { CommonChartProps, StackedChartProps } from './Charts.types' import utc from 'dayjs/plugin/utc' dayjs.extend(utc) /** * Auto formats a number to a default precision if it is a float * * @example * numberFormatter(123) // "123" * numberFormatter(123.123) // "123.12" * numberFormatter(123, 2) // "123.00" */ export const numberFormatter = (num: number, precision = 2) => isFloat(num) ? precisionFormatter(num, precision) : String(num) /** * Tests if a number is a float. * * @example * isFloat(123) // false * isFloat(123.123) // true */ export const isFloat = (num: number) => String(num).includes('.') /** * Formats a number to a particular precision. * * @example * precisionFormatter(123, 2) // "123.00" * precisionFormatter(123.123, 2) // "123.12" */ export const precisionFormatter = (num: number, precision: number): string => { if (isFloat(num)) { const [head, tail] = String(num).split('.') return head + '.' + tail.slice(0, precision) } else { // pad int with 0 return String(num) + '.' + '0'.repeat(precision) } } /** * Formats a timestamp. * Optionally formats the string to UTC * @param value * @param format * @param utc * @returns */ export const timestampFormatter = ( value: string, format: string = DateTimeFormats.FULL, utc: boolean = false ) => { if (utc) { return dayjs.utc(value).format(format) } return dayjs(value).format(format) } /** * Hook to create common wrapping components, perform data transformations * returns a Container component and the minHeight set */ export const useChartSize = ( size: CommonChartProps<any>['size'] = 'normal', sizeMap: { small: number normal: number large: number } = { small: 120, normal: 160, large: 280 } ) => { const minHeight = sizeMap[size] const Container: React.FC = useMemo( () => ({ children }) => ( <ResponsiveContainer height={minHeight} minHeight={minHeight} width="100%"> {children as JSX.Element} </ResponsiveContainer> ), [size] ) return { Container, minHeight, } } /** * Transforms data points into a stacked data structure that can be consumed by recharts */ export const useStacked = ({ data, xAxisKey, yAxisKey, stackKey, variant = 'values', }: Pick<StackedChartProps<any>, 'xAxisKey' | 'yAxisKey' | 'stackKey'> & { variant?: 'values' | 'percentages' } & Pick<CommonChartProps<Record<string, number>>, 'data'>) => { const stackedData = useMemo(() => { if (!data) return [] const mapping = data.reduce((acc, datum) => { const x = datum[xAxisKey] const y = datum[yAxisKey] const s = datum[stackKey] if (!acc[x]) { acc[x] = {} } acc[x][s] = y return acc }, {} as Record<string, Record<string, number>>) const flattened = Object.entries(mapping).map(([x, sMap]) => ({ ...sMap, [xAxisKey]: Number.isNaN(Number(x)) ? x : Number(x), })) return flattened }, [JSON.stringify(data)]) const dataKeys = useMemo(() => { return Object.keys(stackedData[0] || {}) .filter((k) => k !== xAxisKey && k !== yAxisKey) .sort() }, [JSON.stringify(stackedData[0] || {})]) const percentagesStackedData = useMemo(() => { if (variant !== 'percentages') return return stackedData.map((stack) => { const entries = Object.entries(stack) as Array<[string, number]> let map const sum = entries .filter(([key, _value]) => dataKeys.includes(key)) .reduce((acc, [_key, value]) => acc + value, 0) map = entries.reduce((acc, [key, value]) => { if (!dataKeys.includes(key)) { return { ...acc, [key]: value } } return { ...acc, [key]: value !== 0 ? value / sum : 0 } }, {} as any) return map }) }, [JSON.stringify(stackedData)]) return { dataKeys, stackedData, percentagesStackedData } }
studio/components/ui/Charts/Charts.utils.tsx
1
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0009248291025869548, 0.0002844835980795324, 0.0001632253115531057, 0.00017573058721609414, 0.00021607796952594072 ]
{ "id": 5, "code_window": [ " </Bar>\n", " </RechartBarChart>\n", " </Container>\n", " {data && (\n", " <div className=\"text-scale-900 -mt-5 flex items-center justify-between text-xs\">\n", " <span>{dayjs(data[0][xAxisKey]).format(customDateFormat)}</span>\n", " <span>{dayjs(data[data?.length - 1]?.[xAxisKey]).format(customDateFormat)}</span>\n", " </div>\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " <div className=\"text-scale-900 -mt-9 flex items-center justify-between text-xs\">\n" ], "file_path": "studio/components/ui/Charts/BarChart.tsx", "type": "replace", "edit_start_line_idx": 123 }
version: "3.8" services: studio: build: context: .. dockerfile: studio/Dockerfile target: dev ports: - 8082:8082 mail: container_name: supabase-mail image: inbucket/inbucket:3.0.3 ports: - '2500:2500' # SMTP - '9000:9000' # web interface - '1100:1100' # POP3 auth: environment: - GOTRUE_SMTP_USER= - GOTRUE_SMTP_PASS= meta: ports: - 5555:8080 db: restart: 'no' volumes: # Always use a fresh database when developing - /var/lib/postgresql/data # Seed data should be inserted last (alphabetical order) - ./dev/data.sql:/docker-entrypoint-initdb.d/seed.sql storage: volumes: - /var/lib/storage
docker/dev/docker-compose.dev.yml
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0001740724837873131, 0.00017237378051504493, 0.00017003639368340373, 0.0001726931077428162, 0.0000016960268567345338 ]
{ "id": 5, "code_window": [ " </Bar>\n", " </RechartBarChart>\n", " </Container>\n", " {data && (\n", " <div className=\"text-scale-900 -mt-5 flex items-center justify-between text-xs\">\n", " <span>{dayjs(data[0][xAxisKey]).format(customDateFormat)}</span>\n", " <span>{dayjs(data[data?.length - 1]?.[xAxisKey]).format(customDateFormat)}</span>\n", " </div>\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " <div className=\"text-scale-900 -mt-9 flex items-center justify-between text-xs\">\n" ], "file_path": "studio/components/ui/Charts/BarChart.tsx", "type": "replace", "edit_start_line_idx": 123 }
apps/docs/docs/reference/javascript/generated/.gitkeep
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0001691807119641453, 0.0001691807119641453, 0.0001691807119641453, 0.0001691807119641453, 0 ]
{ "id": 5, "code_window": [ " </Bar>\n", " </RechartBarChart>\n", " </Container>\n", " {data && (\n", " <div className=\"text-scale-900 -mt-5 flex items-center justify-between text-xs\">\n", " <span>{dayjs(data[0][xAxisKey]).format(customDateFormat)}</span>\n", " <span>{dayjs(data[data?.length - 1]?.[xAxisKey]).format(customDateFormat)}</span>\n", " </div>\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " <div className=\"text-scale-900 -mt-9 flex items-center justify-between text-xs\">\n" ], "file_path": "studio/components/ui/Charts/BarChart.tsx", "type": "replace", "edit_start_line_idx": 123 }
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="14.2222in" height="14.2222in" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" viewBox="0 0 14222 14222" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <style type="text/css"> <![CDATA[ .fil0 {fill:#1977F3;fill-rule:nonzero} .fil1 {fill:#FEFEFE;fill-rule:nonzero} ]]> </style> </defs> <g id="Layer_x0020_1"> <metadata id="CorelCorpID_0Corel-Layer"/> <path class="fil0" d="M14222 7111c0,-3927 -3184,-7111 -7111,-7111 -3927,0 -7111,3184 -7111,7111 0,3549 2600,6491 6000,7025l0 -4969 -1806 0 0 -2056 1806 0 0 -1567c0,-1782 1062,-2767 2686,-2767 778,0 1592,139 1592,139l0 1750 -897 0c-883,0 -1159,548 -1159,1111l0 1334 1972 0 -315 2056 -1657 0 0 4969c3400,-533 6000,-3475 6000,-7025z"/> <path class="fil1" d="M9879 9167l315 -2056 -1972 0 0 -1334c0,-562 275,-1111 1159,-1111l897 0 0 -1750c0,0 -814,-139 -1592,-139 -1624,0 -2686,984 -2686,2767l0 1567 -1806 0 0 2056 1806 0 0 4969c362,57 733,86 1111,86 378,0 749,-30 1111,-86l0 -4969 1657 0z"/> </g> </svg>
apps/www/public/images/product/auth/facebook-icon.svg
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017313522403128445, 0.00016826941282488406, 0.00016340360161848366, 0.00016826941282488406, 0.0000048658112064003944 ]
{ "id": 6, "code_window": [ " > {\n", " title?: string\n", " className?: string\n", " isLoading?: boolean\n", " size?: 'small' | 'normal' | 'large'\n", "}\n", "\n", "export interface StackedChartProps<D> extends CommonChartProps<D> {\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " size?: 'tiny' | 'small' | 'normal' | 'large'\n" ], "file_path": "studio/components/ui/Charts/Charts.types.tsx", "type": "replace", "edit_start_line_idx": 16 }
import { ReportWidgetProps } from '../ReportWidget' import BarChart from 'components/ui/Charts/BarChart' export const renderTotalRequests = ( props: ReportWidgetProps<{ timestamp: string count: number }> ) => { const total = props.data.reduce((acc, datum) => { return acc + datum.count }, 0) return ( <BarChart size="small" minimalHeader highlightedValue={total} className="w-full h-42" data={props.data} yAxisKey="count" xAxisKey="timestamp" displayDateInUtc /> ) } export const renderErrorCounts = ( props: ReportWidgetProps<{ timestamp: string count: number }> ) => { const total = props.data.reduce((acc, datum) => { return acc + datum.count }, 0) return ( <BarChart size="small" minimalHeader highlightedValue={total} className="w-full h-42" data={props.data} yAxisKey="count" xAxisKey="timestamp" displayDateInUtc /> ) } export const renderResponseSpeed = ( props: ReportWidgetProps<{ timestamp: string avg: number quantiles: number[] }> ) => { const transformedData = props.data.map((datum) => ({ timestamp: datum.timestamp, avg: datum.avg, median: datum.quantiles[49], })) const lastAvg = props.data[props.data.length - 1]?.avg return ( <BarChart size="small" highlightedValue={lastAvg} format="ms" minimalHeader className="w-full h-42" data={transformedData} yAxisKey="avg" xAxisKey="timestamp" displayDateInUtc /> ) }
studio/components/interfaces/Reports/renderers/ApiRenderers.tsx
1
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0007310155197046697, 0.00025283399736508727, 0.00016569795843679458, 0.00017300143372267485, 0.00018349973834119737 ]
{ "id": 6, "code_window": [ " > {\n", " title?: string\n", " className?: string\n", " isLoading?: boolean\n", " size?: 'small' | 'normal' | 'large'\n", "}\n", "\n", "export interface StackedChartProps<D> extends CommonChartProps<D> {\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " size?: 'tiny' | 'small' | 'normal' | 'large'\n" ], "file_path": "studio/components/ui/Charts/Charts.types.tsx", "type": "replace", "edit_start_line_idx": 16 }
{ "database": { "name": "Database", "icon": "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4", "description": "Every project is a full Postgres database, the world's most trusted relational database.", "description_short": "", "label": "", "url": "/database" }, "authentication": { "name": "Authentication", "icon": "M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z", "description": "Add user sign ups and logins, securing your data with Row Level Security.", "description_short": "", "label": "", "url": "/auth" }, "storage": { "name": "Storage", "icon": "M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4", "description": "Store, organize, and serve large files. Any media, including videos and images.", "description_short": "", "label": "", "url": "/storage" }, "realtime": { "name": "Realtime", "icon": "M15.042 21.672L13.684 16.6m0 0l-2.51 2.225.569-9.47 5.227 7.917-3.286-.672zM12 2.25V4.5m5.834.166l-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243l-1.59-1.59", "description": "Store, organize, and serve large files. Any media, including videos and images.", "description_short": "", "label": "", "url": "/storage" }, "edge-functions": { "name": "Edge Functions", "icon": "M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4", "description": "Write custom code without deploying or scaling servers.", "description_short": "", "label": "", "url": "/edge-functions" }, "realtime": { "name": "Realtime", "icon": "M13 10V3L4 14h7v7l9-11h-7z", "description": "Create multiplayer experiences by sharing, broadcasting, and listening to changes from other clients or the Database.", "description_short": "", "label": "", "url": "/realtime" } }
apps/www/data/Solutions.json
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017661726451478899, 0.00017213360115420073, 0.00016479399346280843, 0.00017390081484336406, 0.0000043156242099939846 ]
{ "id": 6, "code_window": [ " > {\n", " title?: string\n", " className?: string\n", " isLoading?: boolean\n", " size?: 'small' | 'normal' | 'large'\n", "}\n", "\n", "export interface StackedChartProps<D> extends CommonChartProps<D> {\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " size?: 'tiny' | 'small' | 'normal' | 'large'\n" ], "file_path": "studio/components/ui/Charts/Charts.types.tsx", "type": "replace", "edit_start_line_idx": 16 }
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><path d="M5.7 0L1.4 10.985V55.88h15.284V64h8.597l8.12-8.12h12.418l16.716-16.716V0H5.7zm51.104 36.3L47.25 45.85H31.967l-8.12 8.12v-8.12H10.952V5.73h45.85V36.3zM47.25 16.716v16.716h-5.73V16.716h5.73zm-15.284 0v16.716h-5.73V16.716h5.73z" fill="#6441a4" fill-rule="evenodd"/></svg>
apps/www/public/images/product/auth/twitch-icon.svg
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017314085562247783, 0.00017314085562247783, 0.00017314085562247783, 0.00017314085562247783, 0 ]
{ "id": 6, "code_window": [ " > {\n", " title?: string\n", " className?: string\n", " isLoading?: boolean\n", " size?: 'small' | 'normal' | 'large'\n", "}\n", "\n", "export interface StackedChartProps<D> extends CommonChartProps<D> {\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ], "after_edit": [ " size?: 'tiny' | 'small' | 'normal' | 'large'\n" ], "file_path": "studio/components/ui/Charts/Charts.types.tsx", "type": "replace", "edit_start_line_idx": 16 }
export { default as IconEye } from './IconEye'
packages/ui/src/components/Icon/icons/IconEye/index.tsx
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017027975991368294, 0.00017027975991368294, 0.00017027975991368294, 0.00017027975991368294, 0 ]
{ "id": 7, "code_window": [ " * returns a Container component and the minHeight set\n", " */\n", "export const useChartSize = (\n", " size: CommonChartProps<any>['size'] = 'normal',\n", " sizeMap: {\n", " small: number\n", " normal: number\n", " large: number\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep" ], "after_edit": [ " tiny: number\n" ], "file_path": "studio/components/ui/Charts/Charts.utils.tsx", "type": "add", "edit_start_line_idx": 72 }
import { ReportWidgetProps } from '../ReportWidget' import BarChart from 'components/ui/Charts/BarChart' export const renderTotalRequests = ( props: ReportWidgetProps<{ timestamp: string count: number }> ) => { const total = props.data.reduce((acc, datum) => { return acc + datum.count }, 0) return ( <BarChart size="small" minimalHeader highlightedValue={total} className="w-full h-42" data={props.data} yAxisKey="count" xAxisKey="timestamp" displayDateInUtc /> ) } export const renderErrorCounts = ( props: ReportWidgetProps<{ timestamp: string count: number }> ) => { const total = props.data.reduce((acc, datum) => { return acc + datum.count }, 0) return ( <BarChart size="small" minimalHeader highlightedValue={total} className="w-full h-42" data={props.data} yAxisKey="count" xAxisKey="timestamp" displayDateInUtc /> ) } export const renderResponseSpeed = ( props: ReportWidgetProps<{ timestamp: string avg: number quantiles: number[] }> ) => { const transformedData = props.data.map((datum) => ({ timestamp: datum.timestamp, avg: datum.avg, median: datum.quantiles[49], })) const lastAvg = props.data[props.data.length - 1]?.avg return ( <BarChart size="small" highlightedValue={lastAvg} format="ms" minimalHeader className="w-full h-42" data={transformedData} yAxisKey="avg" xAxisKey="timestamp" displayDateInUtc /> ) }
studio/components/interfaces/Reports/renderers/ApiRenderers.tsx
1
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0003613315930124372, 0.00019338134734425694, 0.00016393781697843224, 0.0001692843798082322, 0.00006364031287375838 ]
{ "id": 7, "code_window": [ " * returns a Container component and the minHeight set\n", " */\n", "export const useChartSize = (\n", " size: CommonChartProps<any>['size'] = 'normal',\n", " sizeMap: {\n", " small: number\n", " normal: number\n", " large: number\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep" ], "after_edit": [ " tiny: number\n" ], "file_path": "studio/components/ui/Charts/Charts.utils.tsx", "type": "add", "edit_start_line_idx": 72 }
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve"> <style type="text/css"> .st0{fill-rule:evenodd;clip-rule:evenodd;fill:#EA2845;} </style> <path class="st0" d="M18.8,0c-0.2,0-0.4,0-0.6,0.1c1.8,1.2-0.3,3,0.7,4.5c-0.1-1,0.3-2,1.2-2.6c0.3-0.3,0.5-0.4,0.5-0.8 C20.5,0.5,19.5,0,18.8,0z M21.5,0.5c-0.3,1.3-0.6,1.3-1.5,2.2c-0.8,0.6-1,1.6-0.6,2.5c-3.9-1.5-8.9-2.4-12.5,0.2 C5.5,6.3,4.7,7.6,3.1,8.2C2.1,8.5,1,8.4,0.4,9.4c-0.5,0.6-0.5,1.5,0.1,2.1c0.2,0.2,0.6,0.3,0.7,0.5c0.1,0.1,0.1,0.2,0.2,0.4 c0.2,0.4,0.4,0.7,0.6,0.9c0.2,0.1,0.7,0.3,0.8,0.4c0.1,0.2-0.2,0.9,0.1,1c0.2,0.1,0.7-0.9,0.8-0.9c-0.1,0.7-0.2,2,0.6,1 c0.4-0.5,0.4-0.7,1.1-0.8C5.7,14,6.2,14,6.6,13.9c5.1-0.2,9.4,3.6,9.9,8.7c-0.1-0.6-0.9-1.5-1.6-1.3c-0.3,0.1-0.4,0.6-0.6,0.9 c-0.2,0.4-0.5,0.7-0.9,1c0.1-0.6,0-1.1-0.1-1.7c-0.2,0.9-0.6,2.3-1.7,2c-0.7-0.1-1.3-0.6-1.5-1.3c-0.1-0.9,0.8-1.9-0.7-2 c-3-0.1-2.3,4.2-0.5,5.3c-0.4,0-0.8,0.2-1.2,0.3c3.8,2.2,8.6,0.9,10.8-2.9c0.5-0.9,0.8-1.8,1-2.8c0.3,1.2,0.2,2.4,0,3.5 c-0.1,0.6-0.4,1.2-0.6,1.8c-0.4,0.8-0.9,1.5-1.5,2.1c-0.4,0.4-1,0.7-1.2,1.1c1.4-0.2,2.7-0.6,4-1.1C18.8,29.6,17,31.1,15,32 c4.5-0.3,8.5-2.9,10.6-6.8c-0.3,1.9-1.1,3.7-2.2,5.3c3.1-2,5.1-5.3,5.7-8.9c0.3,1.3,0.4,2.7,0.2,4c2.5-3.5,3.3-7.9,2.2-12.1 c-0.4-1.6-1.1-3.1-1.9-4.5c-0.3-0.6-0.7-1.1-1.1-1.6c-0.2-0.2-1-0.9-1-1.1c0,0,0,0,0,0c0,3.7-4,6.1-7.3,5.1c2.6-0.2,4.8-2.2,5.2-4.8 C25.7,4,24.1,1.3,21.5,0.5z"/> </svg>
studio/public/img/icons/nestjs-icon.svg
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00021585410286206752, 0.00019093314767815173, 0.0001660121779423207, 0.00019093314767815173, 0.000024920960640884005 ]
{ "id": 7, "code_window": [ " * returns a Container component and the minHeight set\n", " */\n", "export const useChartSize = (\n", " size: CommonChartProps<any>['size'] = 'normal',\n", " sizeMap: {\n", " small: number\n", " normal: number\n", " large: number\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep" ], "after_edit": [ " tiny: number\n" ], "file_path": "studio/components/ui/Charts/Charts.utils.tsx", "type": "add", "edit_start_line_idx": 72 }
import { Meta } from '@storybook/addon-docs/blocks' import Code from './assets/code-brackets.svg' import Colors from './assets/colors.svg' import Comments from './assets/comments.svg' import Direction from './assets/direction.svg' import Flow from './assets/flow.svg' import Plugin from './assets/plugin.svg' import Repo from './assets/repo.svg' import StackAlt from './assets/stackalt.svg' import './Introduction.css' <Meta title="Introduction" /> <style>{` .subheading { --mediumdark: '#999999'; font-weight: 900; font-size: 13px; color: #999; letter-spacing: 6px; line-height: 24px; text-transform: uppercase; margin-bottom: 12px; margin-top: 40px; } .link-list { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; row-gap: 10px; } @media (min-width: 620px) { .link-list { row-gap: 20px; column-gap: 20px; grid-template-columns: 1fr 1fr; } } @media all and (-ms-high-contrast:none) { .link-list { display: -ms-grid; -ms-grid-columns: 1fr 1fr; -ms-grid-rows: 1fr 1fr; } } .link-item { display: block; padding: 20px 30px 20px 15px; border: 1px solid #00000010; border-radius: 5px; transition: background 150ms ease-out, border 150ms ease-out, transform 150ms ease-out; color: #333333; display: flex; align-items: flex-start; } .link-item:hover { border-color: #1EA7FD50; transform: translate3d(0, -3px, 0); box-shadow: rgba(0, 0, 0, 0.08) 0 3px 10px 0; } .link-item:active { border-color: #1EA7FD; transform: translate3d(0, 0, 0); } .link-item strong { font-weight: 700; display: block; margin-bottom: 2px; } .link-item img { height: 40px; width: 40px; margin-right: 15px; flex: none; } .link-item span { font-size: 14px; line-height: 20px; } .tip { display: inline-block; border-radius: 1em; font-size: 11px; line-height: 12px; font-weight: 700; background: #E7FDD8; color: #66BF3C; padding: 4px 12px; margin-right: 10px; vertical-align: top; } .tip-wrapper { font-size: 13px; line-height: 20px; margin-top: 40px; margin-bottom: 40px; } .tip-wrapper code { font-size: 12px; display: inline-block; } `}</style> # Welcome to Storybook Storybook helps you build UI components in isolation from your app's business logic, data, and context. That makes it easy to develop hard-to-reach states. Save these UI states as **stories** to revisit during development, testing, or QA. Browse example stories now by navigating to them in the sidebar. View their code in the `src/storybook-examples` directory to learn how they work. We recommend building UIs with a [**component-driven**](https://componentdriven.org) process starting with atomic components and ending with pages. <div class="subheading">Configure</div> <div class="link-list"> <a class="link-item" href="https://storybook.js.org/docs/react/api/presets" target="_blank" > <img src={Plugin} alt="plugin" /> <span> <strong>Presets for popular tools</strong> Easy setup for TypeScript, SCSS and more. </span> </a> <a class="link-item" href="https://storybook.js.org/docs/react/configure/webpack" target="_blank" > <img src={StackAlt} alt="Build" /> <span> <strong>Build configuration</strong> How to customize webpack and Babel </span> </a> <a class="link-item" href="https://storybook.js.org/docs/react/configure/styling-and-css" target="_blank" > <img src={Colors} alt="colors" /> <span> <strong>Styling</strong> How to load and configure CSS libraries </span> </a> <a class="link-item" href="https://storybook.js.org/docs/react/get-started/setup#configure-storybook-for-your-stack" target="_blank" > <img src={Flow} alt="flow" /> <span> <strong>Data</strong> Providers and mocking for data libraries </span> </a> </div> <div class="subheading">Learn</div> <div class="link-list"> <a class="link-item" href="https://storybook.js.org/docs" target="_blank"> <img src={Repo} alt="repo" /> <span> <strong>Storybook documentation</strong> Configure, customize, and extend </span> </a> <a class="link-item" href="https://www.learnstorybook.com" target="_blank"> <img src={Direction} alt="direction" /> <span> <strong>In-depth guides</strong> Best practices from leading teams </span> </a> <a class="link-item" href="https://github.com/storybookjs/storybook" target="_blank" > <img src={Code} alt="code" /> <span> <strong>GitHub project</strong> View the source and add issues </span> </a> <a class="link-item" href="https://discord.gg/UUt2PJb" target="_blank"> <img src={Comments} alt="comments" /> <span> <strong>Discord chat</strong> Chat with maintainers and the community </span> </a> </div> <div class="tip-wrapper"> <span class="tip">Tip</span>Edit the Markdown in{' '} <code>src/storybook-examples/welcome.mdx</code> </div>
packages/ui/src/components/Introduction/Introduction.stories.mdx
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017824138922151178, 0.00017455097986385226, 0.0001671405480010435, 0.00017507659504190087, 0.000002547971234889701 ]
{ "id": 7, "code_window": [ " * returns a Container component and the minHeight set\n", " */\n", "export const useChartSize = (\n", " size: CommonChartProps<any>['size'] = 'normal',\n", " sizeMap: {\n", " small: number\n", " normal: number\n", " large: number\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep" ], "after_edit": [ " tiny: number\n" ], "file_path": "studio/components/ui/Charts/Charts.utils.tsx", "type": "add", "edit_start_line_idx": 72 }
export { default as IconArrowDownRight } from './IconArrowDownRight'
packages/ui/src/components/Icon/icons/IconArrowDownRight/index.tsx
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017066385771613568, 0.00017066385771613568, 0.00017066385771613568, 0.00017066385771613568, 0 ]
{ "id": 8, "code_window": [ " small: number\n", " normal: number\n", " large: number\n", " } = { small: 120, normal: 160, large: 280 }\n", ") => {\n", " const minHeight = sizeMap[size]\n", " const Container: React.FC = useMemo(\n", " () =>\n", " ({ children }) =>\n" ], "labels": [ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ], "after_edit": [ " } = {\n", " tiny: 76,\n", " small: 96,\n", " normal: 160,\n", " large: 280,\n", " }\n" ], "file_path": "studio/components/ui/Charts/Charts.utils.tsx", "type": "replace", "edit_start_line_idx": 75 }
import { ReportWidgetProps } from '../ReportWidget' import BarChart from 'components/ui/Charts/BarChart' export const renderTotalRequests = ( props: ReportWidgetProps<{ timestamp: string count: number }> ) => { const total = props.data.reduce((acc, datum) => { return acc + datum.count }, 0) return ( <BarChart size="small" minimalHeader highlightedValue={total} className="w-full h-42" data={props.data} yAxisKey="count" xAxisKey="timestamp" displayDateInUtc /> ) } export const renderErrorCounts = ( props: ReportWidgetProps<{ timestamp: string count: number }> ) => { const total = props.data.reduce((acc, datum) => { return acc + datum.count }, 0) return ( <BarChart size="small" minimalHeader highlightedValue={total} className="w-full h-42" data={props.data} yAxisKey="count" xAxisKey="timestamp" displayDateInUtc /> ) } export const renderResponseSpeed = ( props: ReportWidgetProps<{ timestamp: string avg: number quantiles: number[] }> ) => { const transformedData = props.data.map((datum) => ({ timestamp: datum.timestamp, avg: datum.avg, median: datum.quantiles[49], })) const lastAvg = props.data[props.data.length - 1]?.avg return ( <BarChart size="small" highlightedValue={lastAvg} format="ms" minimalHeader className="w-full h-42" data={transformedData} yAxisKey="avg" xAxisKey="timestamp" displayDateInUtc /> ) }
studio/components/interfaces/Reports/renderers/ApiRenderers.tsx
1
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.001147013041190803, 0.0003025914775207639, 0.00016906591190490872, 0.00017566914902999997, 0.0003194274613633752 ]
{ "id": 8, "code_window": [ " small: number\n", " normal: number\n", " large: number\n", " } = { small: 120, normal: 160, large: 280 }\n", ") => {\n", " const minHeight = sizeMap[size]\n", " const Container: React.FC = useMemo(\n", " () =>\n", " ({ children }) =>\n" ], "labels": [ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ], "after_edit": [ " } = {\n", " tiny: 76,\n", " small: 96,\n", " normal: 160,\n", " large: 280,\n", " }\n" ], "file_path": "studio/components/ui/Charts/Charts.utils.tsx", "type": "replace", "edit_start_line_idx": 75 }
import { some } from 'lodash' import type { PostgresColumn, PostgresTable } from '@supabase/postgres-meta' import { ImportContent, TableField } from './TableEditor.types' import { DEFAULT_COLUMNS } from './TableEditor.constants' import { ColumnField } from '../SidePanelEditor.types' import { generateColumnField, generateColumnFieldFromPostgresColumn, } from '../ColumnEditor/ColumnEditor.utils' export const validateFields = (field: TableField) => { const errors = {} as any if (field.name.length === 0) { errors['name'] = 'Please assign a name for your table' } if (some(field.columns, (column: ColumnField) => column.format.length === 0)) { errors['columns'] = 'Ensure that all your columns are assigned a type' } if (some(field.columns, (column: ColumnField) => column.name.length === 0)) { errors['columns'] = 'Ensure that all your columns are named' } return errors } export const generateTableField = (): TableField => { return { id: 0, name: '', comment: '', columns: DEFAULT_COLUMNS, isRLSEnabled: true, isRealtimeEnabled: false, } } export const generateTableFieldFromPostgresTable = ( table: PostgresTable, isDuplicating = false, isRealtimeEnabled = false ): TableField => { return { id: table.id, name: isDuplicating ? `${table.name}_duplicate` : table.name, comment: isDuplicating ? `This is a duplicate of ${table.name}` : table?.comment ?? '', // @ts-ignore columns: table.columns.map((column: PostgresColumn) => { return generateColumnFieldFromPostgresColumn(column, table) }), isRLSEnabled: table.rls_enabled, isRealtimeEnabled, } } export const formatImportedContentToColumnFields = (importContent: ImportContent) => { const columnFields = importContent.headers.map((header: string) => { const columnType = importContent.columnTypeMap[header] return generateColumnField({ name: header, format: columnType }) }) return columnFields }
studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.utils.ts
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0002832464233506471, 0.00019121529476251453, 0.00016803908511064947, 0.00017677900905255228, 0.000038033773307688534 ]
{ "id": 8, "code_window": [ " small: number\n", " normal: number\n", " large: number\n", " } = { small: 120, normal: 160, large: 280 }\n", ") => {\n", " const minHeight = sizeMap[size]\n", " const Container: React.FC = useMemo(\n", " () =>\n", " ({ children }) =>\n" ], "labels": [ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ], "after_edit": [ " } = {\n", " tiny: 76,\n", " small: 96,\n", " normal: 160,\n", " large: 280,\n", " }\n" ], "file_path": "studio/components/ui/Charts/Charts.utils.tsx", "type": "replace", "edit_start_line_idx": 75 }
export const customDomainKeys = { list: (projectRef: string | undefined) => ['projects', projectRef, 'custom-domains'] as const, }
studio/data/custom-domains/keys.ts
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00016708763723727316, 0.00016708763723727316, 0.00016708763723727316, 0.00016708763723727316, 0 ]
{ "id": 8, "code_window": [ " small: number\n", " normal: number\n", " large: number\n", " } = { small: 120, normal: 160, large: 280 }\n", ") => {\n", " const minHeight = sizeMap[size]\n", " const Container: React.FC = useMemo(\n", " () =>\n", " ({ children }) =>\n" ], "labels": [ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ], "after_edit": [ " } = {\n", " tiny: 76,\n", " small: 96,\n", " normal: 160,\n", " large: 280,\n", " }\n" ], "file_path": "studio/components/ui/Charts/Charts.utils.tsx", "type": "replace", "edit_start_line_idx": 75 }
export { default as IconMeh } from './IconMeh'
packages/ui/src/components/Icon/icons/IconMeh/index.tsx
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017190772632602602, 0.00017190772632602602, 0.00017190772632602602, 0.00017190772632602602, 0 ]
{ "id": 9, "code_window": [ " hideHeaderStyling?: boolean\n", " loading?: boolean\n", " noMargin?: boolean\n", " title?: JSX.Element | false\n", " wrapWithLoading?: boolean\n", "}\n", "function Panel(props: Props) {\n", " let headerClasses: string[] = []\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep" ], "after_edit": [ " noHideOverflow?: boolean\n" ], "file_path": "studio/components/ui/Panel.tsx", "type": "add", "edit_start_line_idx": 13 }
import { useState } from 'react' import { BarChart as RechartBarChart, XAxis, Tooltip, Bar, Cell, BarProps } from 'recharts' import dayjs from 'dayjs' import { CHART_COLORS, DateTimeFormats } from 'components/ui/Charts/Charts.constants' import ChartHeader from './ChartHeader' import { Datum, CommonChartProps } from './Charts.types' import utc from 'dayjs/plugin/utc' import ChartNoData from './NoDataPlaceholder' import { numberFormatter, useChartSize } from './Charts.utils' import { CategoricalChartProps } from 'recharts/types/chart/generateCategoricalChart' dayjs.extend(utc) export interface BarChartProps<D = Datum> extends CommonChartProps<D> { yAxisKey: string xAxisKey: string format?: string customDateFormat?: string displayDateInUtc?: boolean onBarClick?: (datum: Datum, tooltipData?: Parameters<CategoricalChartProps['onClick']>[0]) => void } const BarChart: React.FC<BarChartProps> = ({ data, yAxisKey, xAxisKey, format, customDateFormat = DateTimeFormats.FULL, title, highlightedValue, highlightedLabel, displayDateInUtc, minimalHeader, className = '', size = 'normal', onBarClick, }) => { const { Container } = useChartSize(size) const [focusDataIndex, setFocusDataIndex] = useState<number | null>(null) if (data.length === 0) return <ChartNoData className={className} /> const day = (value: number | string) => (displayDateInUtc ? dayjs(value).utc() : dayjs(value)) const resolvedHighlightedLabel = (focusDataIndex !== null && data && data[focusDataIndex] && day(data[focusDataIndex][xAxisKey]).format(customDateFormat)) || highlightedLabel const resolvedHighlightedValue = (focusDataIndex !== null ? data[focusDataIndex]?.[yAxisKey] : null) || highlightedValue return ( <div className={['flex flex-col gap-3', className].join(' ')}> <ChartHeader title={title} format={format} customDateFormat={customDateFormat} highlightedValue={ typeof resolvedHighlightedValue === 'number' ? numberFormatter(resolvedHighlightedValue) : resolvedHighlightedValue } highlightedLabel={resolvedHighlightedLabel} minimalHeader={minimalHeader} /> <Container> <RechartBarChart data={data} margin={{ top: 0, right: 0, left: 0, bottom: 0, }} className="overflow-visible" // mouse hover focusing logic onMouseMove={(e: any) => { if (e.activeTooltipIndex !== focusDataIndex) { setFocusDataIndex(e.activeTooltipIndex) } }} onMouseLeave={() => setFocusDataIndex(null)} onClick={(tooltipData: any) => { // receives tooltip data https://github.com/recharts/recharts/blob/2a3405ff64a0c050d2cf94c36f0beef738d9e9c2/src/chart/generateCategoricalChart.tsx const datum = tooltipData?.activePayload?.[0]?.payload if (onBarClick) onBarClick(datum, tooltipData) }} > <XAxis dataKey={xAxisKey} interval={data.length - 2} angle={0} // hide the tick tick={{ fontSize: '0px' }} // color the axis axisLine={{ stroke: CHART_COLORS.AXIS }} tickLine={{ stroke: CHART_COLORS.AXIS }} /> <Tooltip content={() => null} /> <Bar dataKey={yAxisKey} fill={CHART_COLORS.GREEN_1} animationDuration={300} // max bar size required to prevent bars from expanding to max width. maxBarSize={48} > {data?.map((_entry: Datum, index: any) => ( <Cell key={`cell-${index}`} className={`transition-all duration-300 ${onBarClick ? 'cursor-pointer' : ''}`} fill={ focusDataIndex === index || focusDataIndex === null ? CHART_COLORS.GREEN_1 : CHART_COLORS.GREEN_2 } enableBackground={12} /> ))} </Bar> </RechartBarChart> </Container> {data && ( <div className="text-scale-900 -mt-5 flex items-center justify-between text-xs"> <span>{dayjs(data[0][xAxisKey]).format(customDateFormat)}</span> <span>{dayjs(data[data?.length - 1]?.[xAxisKey]).format(customDateFormat)}</span> </div> )} </div> ) } export default BarChart
studio/components/ui/Charts/BarChart.tsx
1
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00020961268455721438, 0.00017482555995229632, 0.00016502939979545772, 0.0001719634747132659, 0.00001079732919606613 ]
{ "id": 9, "code_window": [ " hideHeaderStyling?: boolean\n", " loading?: boolean\n", " noMargin?: boolean\n", " title?: JSX.Element | false\n", " wrapWithLoading?: boolean\n", "}\n", "function Panel(props: Props) {\n", " let headerClasses: string[] = []\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep" ], "after_edit": [ " noHideOverflow?: boolean\n" ], "file_path": "studio/components/ui/Panel.tsx", "type": "add", "edit_start_line_idx": 13 }
<svg width="1385" height="400" viewBox="0 0 1385 400" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect x="-21.7783" y="-8.30954" width="1437.79" height="418.744" rx="7.59949" fill="white" stroke="url(#paint0_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip0_1183_95914)"> <rect x="535.898" y="373.354" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M526.824 349.689H633.987V466.237H526.824V349.689Z" fill="url(#paint1_radial_1183_95914)"/> <g filter="url(#filter0_f_1183_95914)"> <ellipse cx="592.379" cy="242.223" rx="236.421" ry="107.725" fill="url(#paint2_linear_1183_95914)"/> </g> </g> <rect x="536.144" y="373.599" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint3_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip1_1183_95914)"> <rect x="648.887" y="373.354" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M639.816 349.689H746.979V466.237H639.816V349.689Z" fill="url(#paint4_radial_1183_95914)"/> <g filter="url(#filter1_f_1183_95914)"> <ellipse cx="705.375" cy="242.223" rx="236.421" ry="107.725" fill="url(#paint5_linear_1183_95914)"/> </g> </g> <rect x="649.132" y="373.599" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint6_linear_1183_95914)" stroke-width="0.49029"/> <rect x="762.124" y="373.599" width="98.8752" height="91.1592" rx="7.59949" fill="white"/> <rect x="762.124" y="373.599" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint7_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip2_1183_95914)"> <rect x="986.863" y="373.354" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M977.789 349.689H1084.95V466.237H977.789V349.689Z" fill="url(#paint8_radial_1183_95914)"/> <g filter="url(#filter2_f_1183_95914)"> <ellipse cx="1043.35" cy="242.223" rx="236.421" ry="107.725" fill="url(#paint9_linear_1183_95914)"/> </g> </g> <rect x="987.108" y="373.599" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint10_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip3_1183_95914)"> <rect x="1100.86" y="373.354" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M1091.79 349.689H1198.95V466.237H1091.79V349.689Z" fill="url(#paint11_radial_1183_95914)"/> <g filter="url(#filter3_f_1183_95914)"> <ellipse cx="1157.34" cy="242.223" rx="236.421" ry="107.725" fill="url(#paint12_linear_1183_95914)"/> </g> </g> <rect x="1101.1" y="373.599" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint13_linear_1183_95914)" stroke-width="0.49029"/> <rect x="1214.1" y="373.599" width="98.8752" height="91.1592" rx="7.59949" fill="white"/> <rect x="1214.1" y="373.599" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint14_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip4_1183_95914)"> <rect x="1326.85" y="373.354" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M1317.78 349.689H1424.94V466.237H1317.78V349.689Z" fill="url(#paint15_radial_1183_95914)"/> <g filter="url(#filter4_f_1183_95914)"> <ellipse cx="1383.33" cy="242.223" rx="236.421" ry="107.725" fill="url(#paint16_linear_1183_95914)"/> </g> </g> <rect x="1327.09" y="373.599" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint17_linear_1183_95914)" stroke-width="0.49029"/> <rect x="386.933" y="268.249" width="98.8752" height="91.1592" rx="7.59949" fill="white"/> <rect x="386.933" y="268.249" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint18_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip5_1183_95914)"> <rect x="499.68" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M490.613 244.34H597.776V360.887H490.613V244.34Z" fill="url(#paint19_radial_1183_95914)"/> <g filter="url(#filter5_f_1183_95914)"> <ellipse cx="556.164" cy="136.875" rx="236.421" ry="107.725" fill="url(#paint20_linear_1183_95914)"/> </g> </g> <rect x="499.925" y="268.249" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint21_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip6_1183_95914)"> <rect x="612.676" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M603.609 244.34H710.772V360.887H603.609V244.34Z" fill="url(#paint22_radial_1183_95914)"/> <g filter="url(#filter6_f_1183_95914)"> <ellipse cx="669.16" cy="136.875" rx="236.421" ry="107.725" fill="url(#paint23_linear_1183_95914)"/> </g> </g> <rect x="612.921" y="268.249" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint24_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip7_1183_95914)"> <rect x="790.469" y="166.047" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <circle cx="858.53" cy="201.63" r="0.73958" transform="rotate(-180 858.53 201.63)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="868.335" cy="186.432" r="0.73958" transform="rotate(-180 868.335 186.432)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="811.946" cy="190.349" rx="0.245145" ry="0.245145" transform="rotate(-180 811.946 190.349)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="811.464" cy="200.159" r="0.73958" transform="rotate(-180 811.464 200.159)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="803.122" cy="201.626" rx="0.245145" ry="0.245145" transform="rotate(-180 803.122 201.626)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="800.674" cy="196.727" r="0.73958" transform="rotate(-180 800.674 196.727)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="801.655" cy="222.712" r="0.73958" transform="rotate(-180 801.655 222.712)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="796.753" cy="213.397" r="0.73958" transform="rotate(-180 796.753 213.397)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="810.483" cy="213.397" r="0.73958" transform="rotate(-180 810.483 213.397)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="834.503" cy="226.145" r="0.73958" transform="rotate(-180 834.503 226.145)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="821.264" cy="224.184" r="0.73958" transform="rotate(-180 821.264 224.184)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="859.993" cy="237.907" rx="0.245145" ry="0.245145" transform="rotate(-180 859.993 237.907)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 814.892 232.513)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 823.228 226.63)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 816.853 225.159)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="864.089" cy="223.368" r="0.73958" transform="rotate(-75 864.089 223.368)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="843.007" cy="234.645" r="0.73958" transform="rotate(-75 843.007 234.645)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="873.286" cy="198.363" r="0.267292" transform="rotate(105 873.286 198.363)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="847.247" cy="219.276" rx="0.245145" ry="0.245145" transform="rotate(-180 847.247 219.276)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="865.546" cy="229.608" r="0.73958" transform="rotate(-180 865.546 229.608)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="878.98" cy="215.206" r="0.73958" transform="rotate(-75 878.98 215.206)" fill="#B2E1DC" fill-opacity="0.65"/> <path d="M781.406 142.383H888.569V258.93H781.406V142.383Z" fill="url(#paint25_radial_1183_95914)"/> <g filter="url(#filter7_f_1183_95914)"> <ellipse cx="846.957" cy="34.9182" rx="236.421" ry="107.725" fill="url(#paint26_linear_1183_95914)"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M843.099 220.56C846.272 219.443 848.554 216.445 848.554 212.919C848.554 208.442 844.884 204.8 840.371 204.8C835.859 204.8 832.188 208.442 832.188 212.919C832.188 216.729 834.85 219.924 838.423 220.793V221.59C834.411 220.707 831.409 217.165 831.409 212.919C831.409 208.008 835.422 204.026 840.371 204.026C845.321 204.026 849.334 208.008 849.334 212.919C849.334 216.885 846.714 220.239 843.099 221.384V220.56ZM840.371 208.666C838.007 208.666 836.085 210.574 836.085 212.919C836.085 214.566 837.04 215.987 838.423 216.692V217.552C836.594 216.795 835.305 215.009 835.305 212.919C835.305 210.143 837.573 207.893 840.371 207.893C843.169 207.893 845.437 210.143 845.437 212.919C845.437 214.696 844.502 216.25 843.099 217.144V216.182C844.047 215.401 844.658 214.234 844.658 212.919C844.658 210.574 842.735 208.666 840.371 208.666ZM825.953 212.919C825.953 217.942 828.567 222.352 832.515 224.905C832.753 224.75 832.998 224.605 833.245 224.464C833.422 224.365 833.6 224.269 833.782 224.177C833.998 224.066 834.218 223.961 834.441 223.861C834.663 223.761 834.888 223.669 835.116 223.58C835.301 223.508 835.489 223.44 835.678 223.375C835.942 223.285 836.21 223.202 836.482 223.126C836.686 223.07 836.892 223.017 837.1 222.969C837.311 222.92 837.522 222.874 837.736 222.835C837.964 222.793 838.192 222.754 838.423 222.722C838.682 222.696 838.94 222.665 839.202 222.644V221.728V220.946V217.806V217.007V214.079H838.423V212.532H839.202H841.54H842.32V216.703V217.559V220.797V221.595V222.721C844.477 223.021 846.482 223.776 848.226 224.904C852.175 222.352 854.789 217.942 854.789 212.919C854.789 205.018 848.334 198.613 840.371 198.613C832.409 198.613 825.953 205.018 825.953 212.919Z" fill="url(#paint27_linear_1183_95914)"/> </g> <rect x="790.714" y="166.292" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint28_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip8_1183_95914)"> <rect x="838.656" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M829.594 244.34H936.756V360.887H829.594V244.34Z" fill="url(#paint29_radial_1183_95914)"/> <g filter="url(#filter8_f_1183_95914)"> <ellipse cx="895.14" cy="136.875" rx="236.421" ry="107.725" fill="url(#paint30_linear_1183_95914)"/> </g> </g> <rect x="838.901" y="268.249" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint31_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip9_1183_95914)"> <rect x="951.656" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <circle cx="1019.71" cy="303.587" r="0.73958" transform="rotate(-180 1019.71 303.587)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1029.52" cy="288.389" r="0.73958" transform="rotate(-180 1029.52 288.389)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="973.13" cy="292.306" rx="0.245145" ry="0.245145" transform="rotate(-180 973.13 292.306)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="972.647" cy="302.116" r="0.73958" transform="rotate(-180 972.647 302.116)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="964.306" cy="303.583" rx="0.245145" ry="0.245145" transform="rotate(-180 964.306 303.583)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="961.858" cy="298.684" r="0.73958" transform="rotate(-180 961.858 298.684)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="962.839" cy="324.669" r="0.73958" transform="rotate(-180 962.839 324.669)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="957.936" cy="315.354" r="0.73958" transform="rotate(-180 957.936 315.354)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="971.667" cy="315.354" r="0.73958" transform="rotate(-180 971.667 315.354)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="995.686" cy="328.102" r="0.73958" transform="rotate(-180 995.686 328.102)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="982.448" cy="326.141" r="0.73958" transform="rotate(-180 982.448 326.141)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1021.18" cy="339.864" rx="0.245145" ry="0.245145" transform="rotate(-180 1021.18 339.864)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 976.075 334.47)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 984.411 328.587)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 978.036 327.116)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1025.27" cy="325.325" r="0.73958" transform="rotate(-75 1025.27 325.325)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1004.19" cy="336.602" r="0.73958" transform="rotate(-75 1004.19 336.602)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1034.47" cy="300.32" r="0.267292" transform="rotate(105 1034.47 300.32)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1008.43" cy="321.233" rx="0.245145" ry="0.245145" transform="rotate(-180 1008.43 321.233)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1026.73" cy="331.565" r="0.73958" transform="rotate(-180 1026.73 331.565)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1040.16" cy="317.163" r="0.73958" transform="rotate(-75 1040.16 317.163)" fill="#B2E1DC" fill-opacity="0.65"/> <path d="M942.59 244.34H1049.75V360.887H942.59V244.34Z" fill="url(#paint32_radial_1183_95914)"/> <g filter="url(#filter9_f_1183_95914)"> <ellipse cx="1008.14" cy="136.875" rx="236.421" ry="107.725" fill="url(#paint33_linear_1183_95914)"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M1002.06 298.439H1001.32L987.961 302.574C988.239 321.652 996.984 328.017 1001.32 328.815H1002.06C1012.96 325.368 1015.3 309.885 1015.12 302.574L1002.06 298.439ZM1008.06 313.541C1008.06 316.927 1005.31 319.673 1001.93 319.673C998.54 319.673 995.794 316.927 995.794 313.541C995.794 310.154 998.54 307.408 1001.93 307.408C1005.31 307.408 1008.06 310.154 1008.06 313.541ZM997.43 311.904C997.43 310.695 998.195 309.636 999.372 309.215C999.916 309.021 1000.88 309.069 1001.43 309.318C1002.78 309.931 1003.45 311.533 1002.95 312.931L1002.84 313.245L1003.64 314.072C1004.08 314.528 1004.69 315.163 1005 315.484L1005.55 316.067L1005.53 316.625L1005.51 317.183L1004.57 317.203C1003.7 317.221 1003.61 317.211 1003.48 317.078C1003.39 316.983 1003.34 316.839 1003.34 316.662C1003.34 316.328 1003.24 316.22 1002.93 316.22C1002.54 316.22 1002.41 316.113 1002.41 315.789C1002.41 315.4 1002.22 315.221 1001.81 315.221C1001.56 315.221 1001.43 315.17 1001.17 314.971C1000.86 314.735 1000.81 314.722 1000.29 314.722C999.588 314.722 999.205 314.607 998.659 314.235C997.902 313.72 997.43 312.824 997.43 311.904ZM999.929 310.991C999.929 311.307 999.673 311.563 999.356 311.563C999.04 311.563 998.784 311.307 998.784 310.991C998.784 310.674 999.04 310.418 999.356 310.418C999.673 310.418 999.929 310.674 999.929 310.991Z" fill="url(#paint34_linear_1183_95914)"/> </g> <rect x="951.901" y="268.249" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint35_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip10_1183_95914)"> <rect x="1064.65" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M1055.58 244.34H1162.74V360.887H1055.58V244.34Z" fill="url(#paint36_radial_1183_95914)"/> <g filter="url(#filter10_f_1183_95914)"> <ellipse cx="1121.14" cy="136.875" rx="236.421" ry="107.725" fill="url(#paint37_linear_1183_95914)"/> </g> </g> <rect x="1064.89" y="268.249" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint38_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip11_1183_95914)"> <rect x="1177.64" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <circle cx="1245.7" cy="303.587" r="0.73958" transform="rotate(-180 1245.7 303.587)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1255.5" cy="288.389" r="0.73958" transform="rotate(-180 1255.5 288.389)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1199.11" cy="292.306" rx="0.245145" ry="0.245145" transform="rotate(-180 1199.11 292.306)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1198.63" cy="302.116" r="0.73958" transform="rotate(-180 1198.63 302.116)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1190.29" cy="303.583" rx="0.245145" ry="0.245145" transform="rotate(-180 1190.29 303.583)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1187.84" cy="298.684" r="0.73958" transform="rotate(-180 1187.84 298.684)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1188.82" cy="324.669" r="0.73958" transform="rotate(-180 1188.82 324.669)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1183.92" cy="315.354" r="0.73958" transform="rotate(-180 1183.92 315.354)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1197.65" cy="315.354" r="0.73958" transform="rotate(-180 1197.65 315.354)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1221.67" cy="328.102" r="0.73958" transform="rotate(-180 1221.67 328.102)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1208.43" cy="326.141" r="0.73958" transform="rotate(-180 1208.43 326.141)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1247.16" cy="339.864" rx="0.245145" ry="0.245145" transform="rotate(-180 1247.16 339.864)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 1202.06 334.47)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 1210.4 328.587)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 1204.02 327.116)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1251.26" cy="325.325" r="0.73958" transform="rotate(-75 1251.26 325.325)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1230.18" cy="336.602" r="0.73958" transform="rotate(-75 1230.18 336.602)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1260.45" cy="300.32" r="0.267292" transform="rotate(105 1260.45 300.32)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1234.42" cy="321.233" rx="0.245145" ry="0.245145" transform="rotate(-180 1234.42 321.233)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1252.71" cy="331.565" r="0.73958" transform="rotate(-180 1252.71 331.565)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1266.15" cy="317.163" r="0.73958" transform="rotate(-75 1266.15 317.163)" fill="#B2E1DC" fill-opacity="0.65"/> <path d="M1168.57 244.34H1275.73V360.887H1168.57V244.34Z" fill="url(#paint39_radial_1183_95914)"/> <g filter="url(#filter11_f_1183_95914)"> <ellipse cx="1234.12" cy="136.875" rx="236.421" ry="107.725" fill="url(#paint40_linear_1183_95914)"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M1230.74 298.333C1230.79 298.318 1230.85 298.297 1230.92 298.272C1231.1 298.215 1231.38 298.134 1231.73 298.052C1232.44 297.886 1233.47 297.709 1234.65 297.698C1237.01 297.676 1240.02 298.321 1242.2 301.11L1242.2 301.11C1242.67 301.71 1242.83 302.676 1242.82 303.764C1242.8 304.88 1242.59 306.229 1242.21 307.693C1241.48 310.534 1240.09 313.862 1238.14 316.834C1238.4 317.022 1239.22 317.364 1241.55 316.883C1241.78 316.835 1241.99 316.811 1242.17 316.817C1242.34 316.823 1242.55 316.858 1242.72 316.988C1242.92 317.143 1243 317.373 1242.98 317.588C1242.96 317.773 1242.87 317.937 1242.79 318.062C1242.62 318.319 1242.34 318.584 1242.01 318.828C1241.68 319.077 1241.27 319.324 1240.82 319.534C1240.04 319.894 1238.84 320.104 1237.84 320.115C1237.66 320.117 1237.48 320.112 1237.3 320.101C1237.22 320.129 1237.13 320.136 1237.05 320.116C1236.71 320.043 1236.56 320.051 1236.49 320.068C1236.49 320.069 1236.49 320.069 1236.49 320.069C1236.48 320.07 1236.47 320.072 1236.44 320.146C1236.39 320.265 1236.35 320.463 1236.31 320.809C1236.3 320.923 1236.29 321.055 1236.27 321.201C1236.25 321.458 1236.22 321.759 1236.18 322.08C1236.18 322.111 1236.17 322.143 1236.16 322.173L1235.97 322.735C1235.96 323.395 1235.89 323.703 1235.8 324.022L1235.79 324.064C1235.71 324.334 1235.63 324.625 1235.58 325.294L1235.58 325.294C1235.49 326.426 1235.13 327.373 1234.44 328.105C1233.76 328.832 1232.8 329.303 1231.61 329.559C1230.88 329.716 1230.27 329.71 1229.76 329.57C1229.25 329.429 1228.87 329.158 1228.58 328.834C1228.3 328.516 1228.13 328.154 1228 327.833C1227.94 327.672 1227.88 327.517 1227.84 327.38L1227.81 327.292L1227.81 327.292C1227.78 327.19 1227.75 327.104 1227.72 327.027C1227.37 326.072 1227.4 324.881 1227.45 323.345L1227.45 323.261C1227.47 322.483 1227.42 321.665 1227.31 321.01C1227.26 320.699 1227.19 320.436 1227.13 320.236C1227.09 320.264 1227.06 320.29 1227.03 320.312C1226.78 320.513 1226.07 320.918 1225.2 321.17C1224.33 321.422 1223.21 321.549 1222.19 321.064C1221.84 320.897 1221.56 320.753 1221.37 320.625C1221.27 320.562 1221.18 320.495 1221.1 320.423C1221.03 320.357 1220.94 320.258 1220.89 320.124C1220.83 319.967 1220.82 319.781 1220.92 319.611C1221 319.468 1221.12 319.388 1221.2 319.345C1221.35 319.26 1221.55 319.211 1221.71 319.175C1221.86 319.142 1222 319.115 1222.15 319.087C1222.39 319.042 1222.64 318.996 1222.92 318.923C1223.35 318.81 1223.72 318.662 1223.96 318.455C1224.37 318.1 1224.68 317.818 1224.89 317.604C1224.89 317.567 1224.89 317.53 1224.88 317.493C1224.21 317.477 1223.58 317.298 1223.01 316.992L1222.95 317.058C1222.8 317.214 1222.59 317.439 1222.34 317.72C1221.83 318.281 1221.13 319.06 1220.41 319.933C1219.86 320.59 1219.26 320.974 1218.6 321.002C1217.94 321.03 1217.36 320.699 1216.88 320.225C1215.91 319.289 1215.08 317.582 1214.41 315.737C1213.72 313.87 1213.16 311.78 1212.76 310.009C1212.37 308.247 1212.13 306.763 1212.09 306.114C1211.95 303.184 1212.62 301.215 1213.81 299.958C1214.99 298.704 1216.61 298.239 1218.17 298.149C1219.74 298.059 1221.31 298.341 1222.47 298.639C1223.06 298.789 1223.55 298.944 1223.89 299.062C1223.99 299.096 1224.07 299.126 1224.15 299.153C1225.26 298.345 1226.63 298.06 1227.91 298.03C1228.94 298.005 1229.93 298.144 1230.74 298.333ZM1224.54 300.082C1224.55 300.075 1224.56 300.068 1224.57 300.06C1225.49 299.328 1226.7 299.04 1227.93 299.01C1229.3 298.977 1230.62 299.267 1231.41 299.544C1232.25 299.898 1233.57 300.663 1234.74 301.798C1235.79 302.81 1236.7 304.09 1237.1 305.609C1235.48 305.456 1234.38 305.747 1233.74 306.476C1233.02 307.302 1233.07 308.496 1233.34 309.577C1233.62 310.689 1234.17 311.859 1234.66 312.802C1234.9 313.256 1235.12 313.665 1235.31 313.994L1235.33 314.037C1235.53 314.389 1235.65 314.612 1235.69 314.718C1235.98 315.414 1236.34 315.901 1236.63 316.265C1236.67 316.315 1236.71 316.361 1236.74 316.404L1236.74 316.404C1236.84 316.524 1236.91 316.62 1236.98 316.713L1236.98 316.721L1236.98 316.723C1236.87 316.753 1236.75 316.793 1236.61 316.853C1236.34 316.977 1236.04 317.185 1235.83 317.565C1235.63 317.934 1235.54 318.419 1235.58 319.05C1235.59 319.226 1235.64 319.372 1235.73 319.491C1235.66 319.58 1235.6 319.681 1235.56 319.789C1235.45 320.047 1235.41 320.372 1235.37 320.707C1235.36 320.845 1235.34 320.987 1235.33 321.137C1235.31 321.37 1235.28 321.624 1235.25 321.92L1235.05 322.505C1235.04 322.551 1235.03 322.6 1235.03 322.648C1235.02 323.269 1234.96 323.506 1234.89 323.771L1234.88 323.806C1234.79 324.111 1234.7 324.463 1234.64 325.221C1234.56 326.186 1234.26 326.915 1233.75 327.458C1233.24 328.004 1232.48 328.405 1231.41 328.634C1230.79 328.767 1230.34 328.747 1230.01 328.658C1229.7 328.57 1229.47 328.409 1229.3 328.21C1229.12 328.006 1228.99 327.755 1228.88 327.485C1228.83 327.351 1228.78 327.217 1228.74 327.084L1228.71 327.007C1228.68 326.903 1228.64 326.795 1228.61 326.7C1228.33 325.94 1228.35 324.941 1228.4 323.289C1228.42 322.453 1228.36 321.573 1228.24 320.853C1228.18 320.494 1228.1 320.163 1228.01 319.892C1227.95 319.736 1227.88 319.563 1227.78 319.413C1227.81 319.368 1227.83 319.321 1227.85 319.273C1227.95 319.024 1228.02 318.729 1227.98 318.409C1227.94 318.086 1227.79 317.771 1227.54 317.48C1227.16 317.05 1226.75 316.834 1226.36 316.783C1226.2 316.761 1226.04 316.77 1225.9 316.801C1225.91 316.744 1225.93 316.685 1225.94 316.624C1226.03 316.296 1226.17 315.943 1226.32 315.541L1226.39 315.35C1226.47 315.135 1226.56 314.932 1226.66 314.702L1226.66 314.702C1226.72 314.567 1226.79 314.424 1226.86 314.263C1227.04 313.846 1227.22 313.368 1227.35 312.784C1227.62 311.611 1227.67 310.064 1227.17 307.769L1227.17 307.769C1226.96 306.793 1226.43 306.194 1225.71 305.916C1225.02 305.652 1224.24 305.703 1223.55 305.863C1222.87 306.018 1222.23 306.289 1221.74 306.555C1221.82 305.854 1221.97 305.015 1222.21 304.152C1222.61 302.754 1223.26 301.344 1224.25 300.352C1224.34 300.256 1224.44 300.166 1224.54 300.082ZM1223.34 299.878C1223.05 299.78 1222.67 299.667 1222.24 299.556C1221.12 299.27 1219.66 299.012 1218.23 299.094C1216.8 299.176 1215.45 299.595 1214.5 300.607C1213.55 301.616 1212.9 303.296 1213.04 306.066C1213.07 306.629 1213.29 308.046 1213.69 309.802C1214.08 311.548 1214.63 313.594 1215.29 315.41C1215.97 317.248 1216.74 318.773 1217.53 319.546C1217.93 319.926 1218.27 320.069 1218.56 320.057C1218.85 320.044 1219.23 319.874 1219.68 319.328C1220.42 318.442 1221.12 317.652 1221.63 317.083C1221.87 316.821 1222.07 316.605 1222.22 316.449C1221.03 315.432 1220.34 313.785 1220.59 312.007C1220.81 310.369 1220.73 308.956 1220.69 308.155C1220.67 307.924 1220.66 307.744 1220.66 307.624L1220.66 307.624C1220.66 307.563 1220.67 307.507 1220.69 307.457C1220.72 306.579 1220.88 305.258 1221.27 303.882C1221.67 302.496 1222.31 301.011 1223.34 299.878ZM1238.16 306.407C1238.19 306.359 1238.21 306.304 1238.21 306.245C1238.23 306.147 1238.21 306.051 1238.17 305.967C1237.83 303.946 1236.68 302.309 1235.42 301.093C1234.38 300.083 1233.23 299.342 1232.33 298.89C1232.96 298.765 1233.76 298.653 1234.66 298.644C1236.85 298.624 1239.52 299.219 1241.46 301.693C1241.72 302.023 1241.89 302.703 1241.87 303.749C1241.86 304.768 1241.66 306.04 1241.3 307.456C1240.62 310.087 1239.35 313.161 1237.59 315.946C1237.55 315.895 1237.51 315.844 1237.46 315.793L1237.46 315.793L1237.46 315.793C1237.45 315.775 1237.44 315.758 1237.42 315.741C1237.88 315.051 1238.06 314.147 1238.11 313.276C1238.18 312.287 1238.08 311.251 1237.97 310.418C1237.82 309.269 1238.01 307.391 1238.16 306.407ZM1237.14 306.566C1235.56 306.391 1234.8 306.699 1234.45 307.099C1234.06 307.549 1234.01 308.318 1234.26 309.348C1234.51 310.348 1235.01 311.437 1235.5 312.365C1235.73 312.807 1235.95 313.205 1236.13 313.535L1236.16 313.586C1236.34 313.904 1236.5 314.187 1236.57 314.357C1236.64 314.532 1236.72 314.691 1236.8 314.837C1236.99 314.399 1237.09 313.843 1237.13 313.214C1237.19 312.318 1237.11 311.354 1237 310.547C1236.84 309.377 1237 307.63 1237.14 306.566ZM1226.08 317.767C1225.99 317.876 1225.87 318.013 1225.71 318.177C1225.46 318.425 1225.1 318.762 1224.6 319.199C1224.18 319.554 1223.64 319.748 1223.17 319.872C1222.9 319.942 1222.6 320.001 1222.34 320.049C1222.42 320.089 1222.51 320.132 1222.61 320.178C1223.32 320.514 1224.16 320.45 1224.93 320.228C1225.69 320.006 1226.29 319.654 1226.43 319.542C1226.59 319.413 1226.83 319.169 1226.94 318.895C1227 318.765 1227.02 318.644 1227 318.53C1226.99 318.42 1226.94 318.285 1226.8 318.127C1226.55 317.839 1226.35 317.77 1226.23 317.755C1226.17 317.747 1226.13 317.753 1226.09 317.762C1226.09 317.764 1226.08 317.765 1226.08 317.767ZM1221.76 319.698L1221.76 319.7L1221.76 319.699L1221.76 319.698ZM1225.03 316.371C1225.02 316.429 1225 316.488 1224.99 316.548C1222.95 316.541 1221.19 314.556 1221.52 312.138C1221.77 310.373 1221.67 308.761 1221.63 308.01C1221.62 307.913 1221.62 307.831 1221.61 307.764C1221.62 307.756 1221.63 307.747 1221.64 307.737C1221.75 307.651 1221.92 307.538 1222.14 307.417C1222.57 307.175 1223.16 306.924 1223.76 306.786C1224.37 306.645 1224.94 306.633 1225.37 306.799C1225.76 306.951 1226.1 307.274 1226.25 307.969C1226.72 310.161 1226.66 311.565 1226.43 312.575C1226.31 313.082 1226.15 313.503 1225.99 313.889C1225.93 314.014 1225.88 314.142 1225.82 314.271L1225.82 314.271L1225.82 314.271C1225.7 314.522 1225.59 314.778 1225.5 315.02L1225.5 315.02L1225.43 315.206C1225.28 315.604 1225.13 316 1225.03 316.371ZM1221.56 307.817C1221.55 307.83 1221.55 307.831 1221.56 307.819L1221.56 307.817ZM1224.22 307.559C1224.19 307.713 1224.5 308.127 1224.9 308.182C1225.29 308.237 1225.63 307.914 1225.66 307.76C1225.68 307.605 1225.37 307.434 1224.97 307.379C1224.58 307.323 1224.24 307.404 1224.22 307.559H1224.22ZM1235.64 307.866C1236.04 307.811 1236.34 307.397 1236.32 307.243V307.243C1236.3 307.088 1235.96 307.007 1235.56 307.063C1235.17 307.118 1234.86 307.289 1234.88 307.444C1234.9 307.598 1235.24 307.921 1235.64 307.866ZM1237.3 317.615L1237.3 317.615L1237.3 317.615L1237.3 317.615C1237.28 317.621 1237.26 317.627 1237.24 317.632C1237.15 317.658 1237.07 317.683 1237 317.716C1236.86 317.778 1236.75 317.862 1236.66 318.018C1236.58 318.179 1236.5 318.461 1236.52 318.958C1236.54 318.977 1236.6 319.012 1236.73 319.052C1236.98 319.131 1237.37 319.173 1237.82 319.168C1238.74 319.158 1239.8 318.961 1240.42 318.675C1240.81 318.491 1241.17 318.278 1241.45 318.069C1241.57 317.976 1241.68 317.887 1241.76 317.806L1241.74 317.81C1239.25 318.324 1238.07 318.005 1237.52 317.55C1237.45 317.573 1237.37 317.596 1237.3 317.615ZM1236.51 318.944C1236.51 318.944 1236.51 318.946 1236.51 318.95C1236.51 318.946 1236.51 318.944 1236.51 318.944Z" fill="url(#paint41_linear_1183_95914)"/> </g> <rect x="1177.88" y="268.249" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint42_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip12_1183_95914)"> <rect x="1290.63" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M1281.57 244.34H1388.73V360.887H1281.57V244.34Z" fill="url(#paint43_radial_1183_95914)"/> <g filter="url(#filter12_f_1183_95914)"> <ellipse cx="1347.12" cy="136.875" rx="236.421" ry="107.725" fill="url(#paint44_linear_1183_95914)"/> </g> </g> <rect x="1290.88" y="268.249" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint45_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip13_1183_95914)"> <rect x="421.109" y="62.5098" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M412.043 38.8457H519.205V155.393H412.043V38.8457Z" fill="url(#paint46_radial_1183_95914)"/> <g filter="url(#filter13_f_1183_95914)"> <ellipse cx="477.597" cy="-68.6189" rx="236.421" ry="107.725" fill="url(#paint47_linear_1183_95914)"/> </g> </g> <rect x="421.355" y="62.7549" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint48_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip14_1183_95914)"> <rect x="534.102" y="62.5098" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M525.035 38.8457H632.198V155.393H525.035V38.8457Z" fill="url(#paint49_radial_1183_95914)"/> <g filter="url(#filter14_f_1183_95914)"> <ellipse cx="590.586" cy="-68.6189" rx="236.421" ry="107.725" fill="url(#paint50_linear_1183_95914)"/> </g> </g> <rect x="534.347" y="62.7549" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint51_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip15_1183_95914)"> <rect x="866.531" y="62.5098" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <circle cx="934.585" cy="98.0944" r="0.73958" transform="rotate(-180 934.585 98.0944)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="944.389" cy="82.8971" r="0.73958" transform="rotate(-180 944.389 82.8971)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="888.001" cy="86.8134" rx="0.245145" ry="0.245145" transform="rotate(-180 888.001 86.8134)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="887.518" cy="96.6237" r="0.73958" transform="rotate(-180 887.518 96.6237)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="879.177" cy="98.0908" rx="0.245145" ry="0.245145" transform="rotate(-180 879.177 98.0908)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="876.729" cy="93.1921" r="0.73958" transform="rotate(-180 876.729 93.1921)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="877.71" cy="119.176" r="0.73958" transform="rotate(-180 877.71 119.176)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="872.807" cy="109.862" r="0.73958" transform="rotate(-180 872.807 109.862)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="886.538" cy="109.862" r="0.73958" transform="rotate(-180 886.538 109.862)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="910.557" cy="122.61" r="0.73958" transform="rotate(-180 910.557 122.61)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="897.319" cy="120.649" r="0.73958" transform="rotate(-180 897.319 120.649)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="936.048" cy="134.372" rx="0.245145" ry="0.245145" transform="rotate(-180 936.048 134.372)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 890.946 128.978)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 899.282 123.095)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 892.907 121.624)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="940.144" cy="119.833" r="0.73958" transform="rotate(-75 940.144 119.833)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="919.062" cy="131.11" r="0.73958" transform="rotate(-75 919.062 131.11)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="949.341" cy="94.8277" r="0.267292" transform="rotate(105 949.341 94.8277)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="923.302" cy="115.741" rx="0.245145" ry="0.245145" transform="rotate(-180 923.302 115.741)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="941.6" cy="126.073" r="0.73958" transform="rotate(-180 941.6 126.073)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="955.035" cy="111.67" r="0.73958" transform="rotate(-75 955.035 111.67)" fill="#B2E1DC" fill-opacity="0.65"/> <path d="M857.465 38.8457H964.627V155.393H857.465V38.8457Z" fill="url(#paint52_radial_1183_95914)"/> <g filter="url(#filter15_f_1183_95914)"> <ellipse cx="923.019" cy="-68.6189" rx="236.421" ry="107.725" fill="url(#paint53_linear_1183_95914)"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M928.04 94.8848C928.872 94.8848 929.642 95.3318 930.032 96.0584C930.406 96.7544 930.39 97.5746 929.991 98.2554L929.977 98.2783L926.477 104.093C926.081 104.75 925.366 105.161 924.602 105.169L924.577 105.17L920.58 105.17L922.241 108.946L922.248 108.957L922.258 108.975C922.649 109.678 922.64 110.512 922.234 111.204L922.22 111.227L918.72 117.042C918.324 117.699 917.609 118.11 916.846 118.118L916.821 118.118L911.914 118.118L908.387 121.812L908.38 121.819C908.049 122.154 907.6 122.341 907.133 122.341C907.016 122.341 906.899 122.329 906.783 122.306C906.213 122.19 905.739 121.802 905.511 121.266L905.504 121.25L903.648 117.02L903.638 117.003L903.628 116.986C903.626 116.983 903.625 116.98 903.623 116.977C903.232 116.275 903.241 115.44 903.647 114.748L903.661 114.725L907.056 109.085L904.554 103.398L904.6 103.375L904.599 103.372C904.493 102.849 904.579 102.303 904.85 101.825L904.865 101.799L904.879 101.776L908.38 95.9615C908.776 95.304 909.491 94.8937 910.254 94.8848H910.279H928.04ZM909.659 118.074L905.94 118.074L907.032 120.583L907.035 120.59C907.053 120.635 907.082 120.66 907.126 120.668C907.165 120.676 907.196 120.668 907.226 120.641L907.231 120.636L909.659 118.074ZM920.292 109.448H909.049C909.036 109.448 909.024 109.448 909.011 109.449L909.008 109.449L912.091 116.451H916.82C917.014 116.451 917.202 116.348 917.308 116.182L917.317 116.168L920.822 110.35C920.927 110.176 920.938 109.975 920.856 109.794C920.76 109.585 920.538 109.448 920.292 109.448ZM907.88 110.885L905.098 115.542C904.987 115.727 904.981 115.944 905.08 116.135L905.09 116.155L905.096 116.164L905.107 116.182L905.129 116.215L905.154 116.247L905.178 116.274L905.182 116.279L905.198 116.295L905.212 116.308C905.3 116.387 905.408 116.435 905.527 116.447L905.554 116.45L905.569 116.451L905.589 116.451H910.31L907.88 110.885ZM907.148 105.181L908.37 107.964L908.394 107.956C908.605 107.885 908.826 107.847 909.049 107.844L909.082 107.844L919.98 107.844L918.811 105.181L907.148 105.181ZM928.009 96.508H916.726L919.81 103.511H924.537C924.732 103.511 924.919 103.408 925.026 103.242L925.034 103.228L928.54 97.4102C928.645 97.2367 928.656 97.0354 928.574 96.8544C928.48 96.6497 928.265 96.5139 928.025 96.5082L928.009 96.508ZM914.999 96.508H910.297C910.104 96.508 909.917 96.6112 909.811 96.777L909.803 96.7906L906.306 102.609C906.202 102.782 906.19 102.984 906.273 103.165C906.366 103.37 906.58 103.505 906.819 103.511L906.835 103.511H918.074L914.999 96.508Z" fill="url(#paint54_linear_1183_95914)"/> </g> <rect x="866.776" y="62.7549" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint55_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip16_1183_95914)"> <rect x="902.957" y="164.652" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M893.895 140.988H1001.06V257.536H893.895V140.988Z" fill="url(#paint56_radial_1183_95914)"/> <g filter="url(#filter16_f_1183_95914)"> <ellipse cx="959.445" cy="33.5236" rx="236.421" ry="107.725" fill="url(#paint57_linear_1183_95914)"/> </g> </g> <rect x="903.202" y="164.897" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint58_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip17_1183_95914)"> <rect x="980.828" y="62.5098" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M971.77 38.8457H1078.93V155.393H971.77V38.8457Z" fill="url(#paint59_radial_1183_95914)"/> <g filter="url(#filter17_f_1183_95914)"> <ellipse cx="1037.32" cy="-68.6189" rx="236.421" ry="107.725" fill="url(#paint60_linear_1183_95914)"/> </g> </g> <rect x="981.073" y="62.7549" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint61_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip18_1183_95914)"> <rect x="1099.07" y="62.5098" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <circle cx="1167.12" cy="98.0944" r="0.73958" transform="rotate(-180 1167.12 98.0944)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1176.92" cy="82.8971" r="0.73958" transform="rotate(-180 1176.92 82.8971)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1120.53" cy="86.8134" rx="0.245145" ry="0.245145" transform="rotate(-180 1120.53 86.8134)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1120.05" cy="96.6237" r="0.73958" transform="rotate(-180 1120.05 96.6237)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1111.71" cy="98.0908" rx="0.245145" ry="0.245145" transform="rotate(-180 1111.71 98.0908)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1109.26" cy="93.1921" r="0.73958" transform="rotate(-180 1109.26 93.1921)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1110.24" cy="119.176" r="0.73958" transform="rotate(-180 1110.24 119.176)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1105.34" cy="109.862" r="0.73958" transform="rotate(-180 1105.34 109.862)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1119.07" cy="109.862" r="0.73958" transform="rotate(-180 1119.07 109.862)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1143.09" cy="122.61" r="0.73958" transform="rotate(-180 1143.09 122.61)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1129.85" cy="120.649" r="0.73958" transform="rotate(-180 1129.85 120.649)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1168.58" cy="134.372" rx="0.245145" ry="0.245145" transform="rotate(-180 1168.58 134.372)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 1123.48 128.978)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 1131.81 123.095)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 1125.44 121.624)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1172.68" cy="119.833" r="0.73958" transform="rotate(-75 1172.68 119.833)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1151.59" cy="131.11" r="0.73958" transform="rotate(-75 1151.59 131.11)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1181.87" cy="94.8277" r="0.267292" transform="rotate(105 1181.87 94.8277)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1155.83" cy="115.741" rx="0.245145" ry="0.245145" transform="rotate(-180 1155.83 115.741)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1174.13" cy="126.073" r="0.73958" transform="rotate(-180 1174.13 126.073)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1187.57" cy="111.67" r="0.73958" transform="rotate(-75 1187.57 111.67)" fill="#B2E1DC" fill-opacity="0.65"/> <path d="M1090 38.8457H1197.16V155.393H1090V38.8457Z" fill="url(#paint62_radial_1183_95914)"/> <g filter="url(#filter18_f_1183_95914)"> <ellipse cx="1155.55" cy="-68.6189" rx="236.421" ry="107.725" fill="url(#paint63_linear_1183_95914)"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M1154.19 93.3054C1154.54 93.3 1155.03 93.3268 1155.28 93.3589C1155.53 93.3856 1155.92 93.4498 1156.14 93.4926C1156.36 93.5354 1156.78 93.6531 1157.07 93.7547C1157.37 93.8563 1157.82 94.0328 1158.09 94.1559C1158.36 94.2789 1158.75 94.4875 1158.97 94.6266C1159.19 94.7656 1159.56 95.0117 1159.78 95.1775C1160 95.338 1160.4 95.691 1160.68 95.9531C1160.95 96.2152 1161.34 96.6217 1161.54 96.8571C1161.74 97.0924 1162.04 97.5043 1162.22 97.7664C1162.4 98.0285 1162.69 98.5366 1162.87 98.8897C1163.04 99.2427 1163.28 99.8097 1163.39 100.147C1163.49 100.484 1163.63 101.051 1163.69 101.404C1163.78 101.955 1163.8 102.19 1163.77 103.062C1163.75 103.811 1163.71 104.223 1163.63 104.613C1163.57 104.907 1163.43 105.399 1163.32 105.71C1163.22 106.02 1163 106.528 1162.85 106.849C1162.69 107.164 1162.45 107.598 1162.31 107.806C1162.17 108.02 1161.93 108.363 1161.76 108.571C1161.6 108.78 1161.31 109.112 1161.12 109.315C1160.92 109.518 1160.55 109.866 1160.28 110.085C1160.02 110.31 1159.64 110.599 1159.43 110.727C1159.22 110.861 1158.76 111.107 1158.41 111.278C1158.06 111.449 1157.58 111.647 1156.91 111.861L1156.87 112.385C1156.84 112.669 1156.78 113.182 1156.72 113.519C1156.67 113.856 1156.56 114.353 1156.49 114.616C1156.42 114.878 1156.27 115.338 1156.17 115.632C1156.05 115.926 1155.82 116.456 1155.64 116.809C1155.46 117.162 1155.15 117.702 1154.94 118.012C1154.74 118.322 1154.35 118.836 1154.08 119.157C1153.82 119.478 1153.41 119.922 1153.17 120.141C1152.93 120.36 1152.51 120.708 1152.23 120.922C1151.96 121.136 1151.49 121.452 1151.19 121.623C1150.9 121.794 1150.44 122.04 1150.17 122.163C1149.91 122.291 1149.4 122.489 1149.05 122.607C1148.7 122.725 1148.16 122.869 1147.86 122.928C1147.56 122.992 1147.09 123.062 1146.82 123.094C1146.55 123.12 1146.03 123.147 1145.68 123.147C1145.33 123.147 1144.84 123.12 1144.58 123.094C1144.33 123.062 1143.89 122.987 1143.6 122.928C1143.3 122.874 1142.74 122.725 1142.37 122.602C1141.99 122.479 1141.34 122.216 1140.95 122.019C1140.55 121.821 1140.01 121.516 1139.74 121.345C1139.48 121.168 1139.07 120.874 1138.83 120.687C1138.6 120.499 1138.08 120.023 1137.68 119.622C1137.28 119.221 1136.81 118.702 1136.64 118.467C1136.46 118.231 1136.16 117.809 1135.97 117.531C1135.79 117.253 1135.49 116.734 1135.32 116.381C1135.14 116.028 1134.94 115.584 1134.87 115.391C1134.79 115.199 1134.67 114.862 1134.6 114.642C1134.53 114.423 1134.43 114.011 1134.37 113.733C1134.31 113.455 1134.25 113.032 1134.21 112.797C1134.18 112.562 1134.15 111.973 1134.15 111.486C1134.14 110.839 1134.17 110.406 1134.26 109.855C1134.31 109.443 1134.43 108.876 1134.51 108.598C1134.58 108.32 1134.75 107.828 1134.87 107.501C1135 107.175 1135.22 106.683 1135.36 106.405C1135.5 106.127 1135.71 105.742 1135.83 105.549C1135.95 105.357 1136.24 104.939 1136.48 104.613C1136.73 104.276 1137.19 103.763 1137.56 103.415C1137.91 103.078 1138.44 102.613 1138.75 102.383C1139.06 102.153 1139.57 101.816 1139.88 101.634C1140.19 101.452 1140.64 101.211 1140.89 101.104C1141.15 100.997 1141.59 100.821 1141.88 100.719C1142.18 100.617 1142.72 100.473 1143.09 100.398C1143.46 100.323 1144.02 100.232 1144.34 100.206C1144.67 100.173 1145.06 100.147 1145.49 100.147L1145.61 99.7562C1145.67 99.5476 1145.87 99.0448 1146.06 98.649C1146.25 98.2531 1146.56 97.6969 1146.75 97.4187C1146.94 97.1406 1147.26 96.7233 1147.46 96.4987C1147.66 96.274 1147.99 95.9317 1148.2 95.7445C1148.4 95.5626 1148.71 95.2952 1148.89 95.1615C1149.07 95.0277 1149.4 94.7977 1149.64 94.6533C1149.87 94.5035 1150.26 94.2949 1150.5 94.1879C1150.73 94.0756 1151.12 93.9152 1151.35 93.8296C1151.59 93.7386 1151.96 93.621 1152.18 93.5675C1152.4 93.5086 1152.8 93.4284 1153.06 93.3856C1153.33 93.3482 1153.83 93.3107 1154.19 93.3054ZM1155.63 95.5676C1156.37 95.5837 1156.61 95.6104 1156.94 95.7013C1157.16 95.7655 1157.53 95.9046 1157.77 96.0116C1158.01 96.1185 1158.39 96.3272 1158.63 96.4823C1158.86 96.632 1159.23 96.9102 1159.44 97.1028C1159.66 97.29 1159.97 97.6163 1160.14 97.8195C1160.32 98.0228 1160.57 98.3598 1160.7 98.5684C1160.83 98.7716 1161.04 99.146 1161.16 99.3974C1161.28 99.6488 1161.44 100.071 1161.52 100.334C1161.65 100.777 1161.67 100.89 1161.67 101.751C1161.67 102.58 1161.66 102.735 1161.55 103.115C1161.48 103.35 1161.32 103.762 1161.19 104.024C1161.06 104.286 1160.81 104.698 1160.64 104.934C1160.47 105.169 1160.15 105.533 1159.93 105.736C1159.71 105.945 1159.39 106.212 1159.21 106.33C1159.04 106.453 1158.75 106.624 1158.57 106.709C1158.4 106.8 1158.1 106.923 1157.9 106.982C1157.71 107.046 1157.21 107.18 1156.78 107.287C1156.35 107.394 1155.86 107.544 1155.69 107.624C1155.49 107.715 1155.29 107.865 1155.15 108.015C1155.03 108.148 1154.85 108.421 1154.56 108.993L1154.53 110.304C1154.5 111.24 1154.47 111.743 1154.4 112.048C1154.35 112.283 1154.24 112.695 1154.15 112.957C1154.07 113.219 1153.89 113.647 1153.75 113.909C1153.6 114.166 1153.34 114.594 1153.14 114.867C1152.95 115.139 1152.57 115.589 1152.28 115.867C1152 116.15 1151.56 116.525 1151.29 116.701C1151.03 116.878 1150.63 117.108 1150.42 117.215C1150.2 117.322 1149.85 117.472 1149.64 117.546C1149.43 117.621 1149.12 117.723 1148.94 117.766C1148.77 117.809 1148.4 117.873 1148.14 117.91C1147.85 117.948 1147.36 117.958 1146.91 117.942C1146.5 117.926 1145.98 117.873 1145.76 117.825C1145.54 117.776 1145.13 117.664 1144.85 117.573C1144.57 117.482 1144.16 117.316 1143.93 117.204C1143.7 117.086 1143.38 116.905 1143.2 116.798C1143.04 116.691 1142.72 116.466 1142.5 116.3C1142.28 116.129 1141.87 115.755 1141.59 115.466C1141.31 115.171 1140.96 114.781 1140.82 114.588C1140.68 114.396 1140.43 114.038 1140.28 113.786C1140.12 113.535 1139.9 113.101 1139.78 112.823C1139.66 112.545 1139.52 112.171 1139.46 111.994C1139.4 111.818 1139.31 111.491 1139.26 111.272C1139.21 111.053 1139.16 110.507 1139.14 110.069C1139.13 109.609 1139.14 109.084 1139.17 108.838C1139.2 108.603 1139.29 108.191 1139.37 107.929C1139.44 107.667 1139.62 107.218 1139.75 106.939C1139.88 106.661 1140.13 106.228 1140.31 105.977C1140.48 105.725 1140.85 105.281 1141.12 104.992C1141.39 104.698 1141.8 104.324 1142.02 104.158C1142.24 103.987 1142.65 103.73 1142.93 103.58C1143.2 103.431 1143.63 103.233 1143.86 103.147C1144.1 103.061 1144.45 102.954 1144.64 102.912C1144.83 102.864 1145.15 102.799 1145.36 102.762C1145.57 102.73 1146.28 102.698 1146.94 102.687C1148.09 102.676 1148.16 102.671 1148.57 102.527C1148.81 102.446 1149.09 102.318 1149.21 102.238C1149.36 102.136 1149.46 102.002 1149.54 101.826C1149.6 101.681 1149.71 101.237 1149.77 100.842C1149.84 100.446 1149.94 99.9377 1150 99.7184C1150.06 99.4991 1150.19 99.1354 1150.29 98.916C1150.39 98.6967 1150.6 98.3223 1150.76 98.087C1150.92 97.8516 1151.25 97.4558 1151.5 97.2044C1151.74 96.953 1152.11 96.6374 1152.31 96.5037C1152.52 96.3646 1152.83 96.1827 1153.01 96.0918C1153.19 96.0062 1153.49 95.8832 1153.68 95.819C1153.87 95.7548 1154.18 95.6692 1154.37 95.6264C1154.62 95.5676 1154.97 95.5516 1155.63 95.5676Z" fill="url(#paint64_linear_1183_95914)"/> </g> <rect x="1099.31" y="62.7549" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint65_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip19_1183_95914)"> <rect x="1212.05" y="62.5098" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M1202.99 38.8457H1310.15V155.393H1202.99V38.8457Z" fill="url(#paint66_radial_1183_95914)"/> <g filter="url(#filter19_f_1183_95914)"> <ellipse cx="1268.54" cy="-68.6189" rx="236.421" ry="107.725" fill="url(#paint67_linear_1183_95914)"/> </g> </g> <rect x="1212.3" y="62.7549" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint68_linear_1183_95914)" stroke-width="0.49029"/> <rect x="1325.29" y="62.7549" width="98.8752" height="91.1592" rx="7.59949" fill="white"/> <rect x="1325.29" y="62.7549" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint69_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip20_1183_95914)"> <rect x="680.047" y="166.047" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M670.98 142.383H778.143V258.93H670.98V142.383Z" fill="url(#paint70_radial_1183_95914)"/> <g filter="url(#filter20_f_1183_95914)"> <ellipse cx="736.531" cy="34.9182" rx="236.421" ry="107.725" fill="url(#paint71_linear_1183_95914)"/> </g> </g> <rect x="680.292" y="166.292" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint72_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip21_1183_95914)"> <rect x="1327.09" y="166.047" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M1318.02 142.383H1425.18V258.93H1318.02V142.383Z" fill="url(#paint73_radial_1183_95914)"/> <g filter="url(#filter21_f_1183_95914)"> <ellipse cx="1383.57" cy="34.9182" rx="236.421" ry="107.725" fill="url(#paint74_linear_1183_95914)"/> </g> </g> <rect x="1327.33" y="166.292" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint75_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip22_1183_95914)"> <rect x="1212.8" y="166.047" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M1203.73 142.383H1310.89V258.93H1203.73V142.383Z" fill="url(#paint76_radial_1183_95914)"/> <g filter="url(#filter22_f_1183_95914)"> <ellipse cx="1269.28" cy="34.9182" rx="236.421" ry="107.725" fill="url(#paint77_linear_1183_95914)"/> </g> </g> <rect x="1213.04" y="166.292" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint78_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip23_1183_95914)"> <rect x="424.184" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M415.105 -67.6602H522.268V48.8871H415.105V-67.6602Z" fill="url(#paint79_radial_1183_95914)"/> </g> <rect x="424.429" y="-43.7509" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint80_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip24_1183_95914)"> <rect x="537.18" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M528.109 -67.6602H635.272V48.8871H528.109V-67.6602Z" fill="url(#paint81_radial_1183_95914)"/> </g> <rect x="537.425" y="-43.7509" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint82_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip25_1183_95914)"> <rect x="650.168" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M641.102 -67.6602H748.264V48.8871H641.102V-67.6602Z" fill="url(#paint83_radial_1183_95914)"/> </g> <rect x="650.413" y="-43.7509" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint84_linear_1183_95914)" stroke-width="0.49029"/> <rect x="763.401" y="-43.7509" width="98.8752" height="91.1592" rx="7.59949" fill="white"/> <rect x="763.401" y="-43.7509" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint85_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip26_1183_95914)"> <rect x="876.152" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M867.086 -67.6602H974.248V48.8871H867.086V-67.6602Z" fill="url(#paint86_radial_1183_95914)"/> </g> <rect x="876.397" y="-43.7509" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint87_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip27_1183_95914)"> <rect x="989.148" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M980.078 -67.6602H1087.24V48.8871H980.078V-67.6602Z" fill="url(#paint88_radial_1183_95914)"/> </g> <rect x="989.394" y="-43.7509" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint89_linear_1183_95914)" stroke-width="0.49029"/> <rect x="1102.38" y="-43.7509" width="98.8752" height="91.1592" rx="7.59949" fill="white"/> <rect x="1102.38" y="-43.7509" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint90_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip28_1183_95914)"> <rect x="1215.12" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M1206.05 -67.6602H1313.22V48.8871H1206.05V-67.6602Z" fill="url(#paint91_radial_1183_95914)"/> </g> <rect x="1215.37" y="-43.7509" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint92_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip29_1183_95914)"> <rect x="1328.12" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <path d="M1319.05 -67.6602H1426.22V48.8871H1319.05V-67.6602Z" fill="url(#paint93_radial_1183_95914)"/> </g> <rect x="1328.37" y="-43.7509" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint94_linear_1183_95914)" stroke-width="0.49029"/> <g clip-path="url(#clip30_1183_95914)"> <rect x="1016.97" y="164.652" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> <circle cx="1085.03" cy="200.235" r="0.73958" transform="rotate(-180 1085.03 200.235)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1094.83" cy="185.038" r="0.73958" transform="rotate(-180 1094.83 185.038)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1038.44" cy="188.954" rx="0.245145" ry="0.245145" transform="rotate(-180 1038.44 188.954)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1037.96" cy="198.764" r="0.73958" transform="rotate(-180 1037.96 198.764)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1029.62" cy="200.231" rx="0.245145" ry="0.245145" transform="rotate(-180 1029.62 200.231)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1027.17" cy="195.333" r="0.73958" transform="rotate(-180 1027.17 195.333)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1028.15" cy="221.317" r="0.73958" transform="rotate(-180 1028.15 221.317)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1023.25" cy="212.003" r="0.73958" transform="rotate(-180 1023.25 212.003)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1036.98" cy="212.003" r="0.73958" transform="rotate(-180 1036.98 212.003)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1061" cy="224.751" r="0.73958" transform="rotate(-180 1061 224.751)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1047.76" cy="222.79" r="0.73958" transform="rotate(-180 1047.76 222.79)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1086.49" cy="236.511" rx="0.245145" ry="0.245145" transform="rotate(-180 1086.49 236.511)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 1041.39 231.118)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 1049.72 225.235)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse rx="0.245145" ry="0.245145" transform="matrix(-1 -8.18178e-08 -8.18178e-08 1 1043.35 223.765)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1090.59" cy="221.973" r="0.73958" transform="rotate(-75 1090.59 221.973)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1069.5" cy="233.25" r="0.73958" transform="rotate(-75 1069.5 233.25)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1099.78" cy="196.968" r="0.267292" transform="rotate(105 1099.78 196.968)" fill="#B2E1DC" fill-opacity="0.65"/> <ellipse cx="1073.74" cy="217.882" rx="0.245145" ry="0.245145" transform="rotate(-180 1073.74 217.882)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1092.04" cy="228.214" r="0.73958" transform="rotate(-180 1092.04 228.214)" fill="#B2E1DC" fill-opacity="0.65"/> <circle cx="1105.48" cy="213.811" r="0.73958" transform="rotate(-75 1105.48 213.811)" fill="#B2E1DC" fill-opacity="0.65"/> <path d="M1007.9 140.988H1115.06V257.536H1007.9V140.988Z" fill="url(#paint95_radial_1183_95914)"/> <g filter="url(#filter23_f_1183_95914)"> <ellipse cx="1073.45" cy="33.5217" rx="236.421" ry="107.725" fill="url(#paint96_linear_1183_95914)"/> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M1066.75 196.968C1066.73 195.771 1065.21 195.258 1064.47 196.195L1053.21 210.343C1051.88 212.013 1053.07 214.476 1055.21 214.476H1066.85L1066.99 223.593C1067.01 224.79 1068.52 225.304 1069.27 224.366L1080.52 210.218C1081.85 208.548 1080.66 206.086 1078.52 206.086H1066.81L1066.75 196.968Z" fill="url(#paint97_linear_1183_95914)"/> </g> <rect x="1017.21" y="164.897" width="98.8752" height="91.1592" rx="7.59949" stroke="url(#paint98_linear_1183_95914)" stroke-width="0.49029"/> <rect x="1.24609" y="-2.73242" width="1383.92" height="402.54" fill="url(#paint99_radial_1183_95914)"/> <defs> <filter id="filter0_f_1183_95914" x="289.828" y="68.3693" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter1_f_1183_95914" x="402.824" y="68.3693" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter2_f_1183_95914" x="740.801" y="68.3693" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter3_f_1183_95914" x="854.793" y="68.3693" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter4_f_1183_95914" x="1080.78" y="68.3693" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter5_f_1183_95914" x="253.613" y="-36.9783" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter6_f_1183_95914" x="366.61" y="-36.9783" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter7_f_1183_95914" x="544.406" y="-138.935" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter8_f_1183_95914" x="592.59" y="-36.9783" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter9_f_1183_95914" x="705.594" y="-36.9783" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter10_f_1183_95914" x="818.586" y="-36.9783" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter11_f_1183_95914" x="931.567" y="-36.9783" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter12_f_1183_95914" x="1044.57" y="-36.9783" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter13_f_1183_95914" x="175.047" y="-242.472" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter14_f_1183_95914" x="288.035" y="-242.472" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter15_f_1183_95914" x="620.469" y="-242.472" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter16_f_1183_95914" x="656.895" y="-140.33" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter17_f_1183_95914" x="734.77" y="-242.472" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter18_f_1183_95914" x="853" y="-242.472" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter19_f_1183_95914" x="965.988" y="-242.472" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter20_f_1183_95914" x="433.981" y="-138.935" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter21_f_1183_95914" x="1081.02" y="-138.935" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter22_f_1183_95914" x="966.727" y="-138.935" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <filter id="filter23_f_1183_95914" x="770.899" y="-140.332" width="605.101" height="347.707" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="33.0644" result="effect1_foregroundBlur_1183_95914"/> </filter> <linearGradient id="paint0_linear_1183_95914" x1="1358.92" y1="5.51382" x2="1076.29" y2="792.232" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint1_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(591.143 419.345) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint2_linear_1183_95914" x1="479.444" y1="40.7807" x2="587.575" y2="403.889" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint3_linear_1183_95914" x1="631.303" y1="376.429" x2="535.004" y2="461.14" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint4_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(704.135 419.345) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint5_linear_1183_95914" x1="592.44" y1="40.7807" x2="700.571" y2="403.889" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint6_linear_1183_95914" x1="744.291" y1="376.429" x2="647.992" y2="461.14" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <linearGradient id="paint7_linear_1183_95914" x1="857.283" y1="376.429" x2="760.985" y2="461.14" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint8_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1042.11 419.345) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint9_linear_1183_95914" x1="930.417" y1="40.7807" x2="1038.55" y2="403.889" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint10_linear_1183_95914" x1="1082.27" y1="376.429" x2="985.969" y2="461.14" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint11_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1156.1 419.345) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint12_linear_1183_95914" x1="1044.41" y1="40.7807" x2="1152.54" y2="403.889" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint13_linear_1183_95914" x1="1196.26" y1="376.429" x2="1099.96" y2="461.14" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <linearGradient id="paint14_linear_1183_95914" x1="1309.26" y1="376.429" x2="1212.96" y2="461.14" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint15_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1382.1 419.345) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint16_linear_1183_95914" x1="1270.4" y1="40.7807" x2="1378.53" y2="403.889" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint17_linear_1183_95914" x1="1422.25" y1="376.429" x2="1325.95" y2="461.14" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <linearGradient id="paint18_linear_1183_95914" x1="482.092" y1="271.079" x2="385.793" y2="355.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint19_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(554.932 313.995) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint20_linear_1183_95914" x1="443.229" y1="-64.567" x2="551.36" y2="298.541" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint21_linear_1183_95914" x1="595.084" y1="271.079" x2="498.785" y2="355.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint22_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(667.928 313.995) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint23_linear_1183_95914" x1="556.226" y1="-64.567" x2="664.356" y2="298.541" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint24_linear_1183_95914" x1="708.08" y1="271.079" x2="611.781" y2="355.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint25_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(845.725 212.038) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint26_linear_1183_95914" x1="734.022" y1="-166.524" x2="842.153" y2="196.584" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint27_linear_1183_95914" x1="854.789" y1="198.613" x2="855.905" y2="237.983" gradientUnits="userSpaceOnUse"> <stop stop-color="#39A9A2" stop-opacity="0.85"/> <stop offset="1" stop-color="#88D1CD" stop-opacity="0"/> </linearGradient> <linearGradient id="paint28_linear_1183_95914" x1="885.873" y1="169.122" x2="789.574" y2="253.833" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint29_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(893.912 313.995) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint30_linear_1183_95914" x1="782.206" y1="-64.567" x2="890.336" y2="298.541" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint31_linear_1183_95914" x1="934.061" y1="271.079" x2="837.762" y2="355.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint32_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1006.91 313.995) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint33_linear_1183_95914" x1="895.21" y1="-64.567" x2="1003.34" y2="298.541" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint34_linear_1183_95914" x1="1015.13" y1="298.439" x2="1016.71" y2="343.905" gradientUnits="userSpaceOnUse"> <stop stop-color="#39A9A2" stop-opacity="0.85"/> <stop offset="1" stop-color="#88D1CD" stop-opacity="0"/> </linearGradient> <linearGradient id="paint35_linear_1183_95914" x1="1047.06" y1="271.079" x2="950.762" y2="355.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint36_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1119.9 313.995) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint37_linear_1183_95914" x1="1008.2" y1="-64.567" x2="1116.33" y2="298.541" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint38_linear_1183_95914" x1="1160.05" y1="271.079" x2="1063.75" y2="355.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint39_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1232.89 313.995) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint40_linear_1183_95914" x1="1121.18" y1="-64.567" x2="1229.31" y2="298.541" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint41_linear_1183_95914" x1="1242.98" y1="297.697" x2="1244.52" y2="345.571" gradientUnits="userSpaceOnUse"> <stop stop-color="#39A9A2" stop-opacity="0.85"/> <stop offset="1" stop-color="#88D1CD" stop-opacity="0"/> </linearGradient> <linearGradient id="paint42_linear_1183_95914" x1="1273.04" y1="271.079" x2="1176.74" y2="355.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint43_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1345.88 313.995) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint44_linear_1183_95914" x1="1234.18" y1="-64.567" x2="1342.31" y2="298.541" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint45_linear_1183_95914" x1="1386.04" y1="271.079" x2="1289.74" y2="355.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint46_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(476.361 108.501) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint47_linear_1183_95914" x1="364.663" y1="-270.061" x2="472.793" y2="93.0469" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint48_linear_1183_95914" x1="516.514" y1="65.5853" x2="420.215" y2="150.296" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint49_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(589.353 108.501) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint50_linear_1183_95914" x1="477.651" y1="-270.061" x2="585.782" y2="93.0469" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint51_linear_1183_95914" x1="629.506" y1="65.5853" x2="533.207" y2="150.296" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint52_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(921.783 108.501) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint53_linear_1183_95914" x1="810.085" y1="-270.061" x2="918.215" y2="93.0469" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint54_linear_1183_95914" x1="930.302" y1="94.8848" x2="931.602" y2="135.99" gradientUnits="userSpaceOnUse"> <stop stop-color="#39A9A2" stop-opacity="0.85"/> <stop offset="1" stop-color="#88D1CD" stop-opacity="0"/> </linearGradient> <linearGradient id="paint55_linear_1183_95914" x1="961.936" y1="65.5853" x2="865.637" y2="150.296" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint56_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(958.213 210.643) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint57_linear_1183_95914" x1="846.511" y1="-167.919" x2="954.641" y2="195.19" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint58_linear_1183_95914" x1="998.361" y1="167.728" x2="902.063" y2="252.438" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint59_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1036.09 108.501) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint60_linear_1183_95914" x1="924.386" y1="-270.061" x2="1032.52" y2="93.0469" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint61_linear_1183_95914" x1="1076.23" y1="65.5853" x2="979.934" y2="150.296" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint62_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1154.31 108.501) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint63_linear_1183_95914" x1="1042.62" y1="-270.061" x2="1150.75" y2="93.0469" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint64_linear_1183_95914" x1="1163.78" y1="93.3047" x2="1165.18" y2="137.983" gradientUnits="userSpaceOnUse"> <stop stop-color="#39A9A2" stop-opacity="0.85"/> <stop offset="1" stop-color="#88D1CD" stop-opacity="0"/> </linearGradient> <linearGradient id="paint65_linear_1183_95914" x1="1194.47" y1="65.5853" x2="1098.17" y2="150.296" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint66_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1267.31 108.501) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint67_linear_1183_95914" x1="1155.6" y1="-270.061" x2="1263.73" y2="93.0469" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint68_linear_1183_95914" x1="1307.46" y1="65.5853" x2="1211.16" y2="150.296" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <linearGradient id="paint69_linear_1183_95914" x1="1420.45" y1="65.5853" x2="1324.15" y2="150.296" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint70_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(735.299 212.038) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint71_linear_1183_95914" x1="623.597" y1="-166.524" x2="731.727" y2="196.584" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint72_linear_1183_95914" x1="775.451" y1="169.122" x2="679.153" y2="253.833" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint73_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1382.34 212.038) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint74_linear_1183_95914" x1="1270.64" y1="-166.524" x2="1378.77" y2="196.584" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint75_linear_1183_95914" x1="1422.49" y1="169.122" x2="1326.19" y2="253.833" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint76_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1268.04 212.038) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint77_linear_1183_95914" x1="1156.34" y1="-166.524" x2="1264.47" y2="196.584" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint78_linear_1183_95914" x1="1308.2" y1="169.122" x2="1211.9" y2="253.833" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint79_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(479.424 1.99501) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint80_linear_1183_95914" x1="519.588" y1="-40.9206" x2="423.289" y2="43.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint81_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(592.428 1.99501) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint82_linear_1183_95914" x1="632.584" y1="-40.9206" x2="536.285" y2="43.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint83_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(705.42 1.99501) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint84_linear_1183_95914" x1="745.572" y1="-40.9206" x2="649.274" y2="43.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <linearGradient id="paint85_linear_1183_95914" x1="858.561" y1="-40.9206" x2="762.262" y2="43.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint86_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(931.404 1.99501) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint87_linear_1183_95914" x1="971.557" y1="-40.9206" x2="875.258" y2="43.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint88_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1044.4 1.99501) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint89_linear_1183_95914" x1="1084.55" y1="-40.9206" x2="988.254" y2="43.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <linearGradient id="paint90_linear_1183_95914" x1="1197.54" y1="-40.9206" x2="1101.24" y2="43.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint91_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1270.37 1.99501) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint92_linear_1183_95914" x1="1310.53" y1="-40.9206" x2="1214.23" y2="43.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint93_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1383.37 1.99501) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint94_linear_1183_95914" x1="1423.53" y1="-40.9206" x2="1327.23" y2="43.79" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint95_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1072.22 210.643) rotate(180) scale(52.7805 28.6397)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="#F4F2F2" stop-opacity="0.07"/> <stop offset="1" stop-color="#F4F4F4" stop-opacity="0.43"/> </radialGradient> <linearGradient id="paint96_linear_1183_95914" x1="960.515" y1="-167.92" x2="1068.64" y2="195.188" gradientUnits="userSpaceOnUse"> <stop offset="0.25" stop-color="#39617D" stop-opacity="0.32"/> <stop offset="0.630208" stop-color="#00DED1" stop-opacity="0.12"/> <stop offset="1" stop-color="#343434" stop-opacity="0.51"/> </linearGradient> <linearGradient id="paint97_linear_1183_95914" x1="1081.08" y1="195.711" x2="1082.47" y2="239.335" gradientUnits="userSpaceOnUse"> <stop stop-color="#39A9A2" stop-opacity="0.85"/> <stop offset="1" stop-color="#88D1CD" stop-opacity="0"/> </linearGradient> <linearGradient id="paint98_linear_1183_95914" x1="1112.37" y1="167.728" x2="1016.07" y2="252.438" gradientUnits="userSpaceOnUse"> <stop stop-color="#EDEDED"/> <stop offset="1" stop-color="#D0D0D0"/> </linearGradient> <radialGradient id="paint99_radial_1183_95914" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1035.62 216.223) rotate(-180) scale(771.966 771.675)"> <stop stop-color="white" stop-opacity="0"/> <stop offset="0.630208" stop-color="white" stop-opacity="0.35"/> <stop offset="1" stop-color="white" stop-opacity="0.88"/> </radialGradient> <clipPath id="clip0_1183_95914"> <rect x="535.898" y="373.354" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip1_1183_95914"> <rect x="648.887" y="373.354" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip2_1183_95914"> <rect x="986.863" y="373.354" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip3_1183_95914"> <rect x="1100.86" y="373.354" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip4_1183_95914"> <rect x="1326.85" y="373.354" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip5_1183_95914"> <rect x="499.68" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip6_1183_95914"> <rect x="612.676" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip7_1183_95914"> <rect x="790.469" y="166.047" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip8_1183_95914"> <rect x="838.656" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip9_1183_95914"> <rect x="951.656" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip10_1183_95914"> <rect x="1064.65" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip11_1183_95914"> <rect x="1177.64" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip12_1183_95914"> <rect x="1290.63" y="268.004" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip13_1183_95914"> <rect x="421.109" y="62.5098" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip14_1183_95914"> <rect x="534.102" y="62.5098" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip15_1183_95914"> <rect x="866.531" y="62.5098" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip16_1183_95914"> <rect x="902.957" y="164.652" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip17_1183_95914"> <rect x="980.828" y="62.5098" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip18_1183_95914"> <rect x="1099.07" y="62.5098" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip19_1183_95914"> <rect x="1212.05" y="62.5098" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip20_1183_95914"> <rect x="680.047" y="166.047" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip21_1183_95914"> <rect x="1327.09" y="166.047" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip22_1183_95914"> <rect x="1212.8" y="166.047" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip23_1183_95914"> <rect x="424.184" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip24_1183_95914"> <rect x="537.18" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip25_1183_95914"> <rect x="650.168" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip26_1183_95914"> <rect x="876.152" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip27_1183_95914"> <rect x="989.148" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip28_1183_95914"> <rect x="1215.12" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip29_1183_95914"> <rect x="1328.12" y="-43.9961" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> <clipPath id="clip30_1183_95914"> <rect x="1016.97" y="164.652" width="99.3655" height="91.6495" rx="7.84464" fill="white"/> </clipPath> </defs> </svg>
apps/www/public/images/launchweek/community-visual-light-hover.svg
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.001165964175015688, 0.0001938357891049236, 0.0001639259426156059, 0.00017204579489771277, 0.00013568310532718897 ]
{ "id": 9, "code_window": [ " hideHeaderStyling?: boolean\n", " loading?: boolean\n", " noMargin?: boolean\n", " title?: JSX.Element | false\n", " wrapWithLoading?: boolean\n", "}\n", "function Panel(props: Props) {\n", " let headerClasses: string[] = []\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep" ], "after_edit": [ " noHideOverflow?: boolean\n" ], "file_path": "studio/components/ui/Panel.tsx", "type": "add", "edit_start_line_idx": 13 }
export { default as IconPause } from './IconPause'
packages/ui/src/components/Icon/icons/IconPause/index.tsx
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0001756152487359941, 0.0001756152487359941, 0.0001756152487359941, 0.0001756152487359941, 0 ]
{ "id": 9, "code_window": [ " hideHeaderStyling?: boolean\n", " loading?: boolean\n", " noMargin?: boolean\n", " title?: JSX.Element | false\n", " wrapWithLoading?: boolean\n", "}\n", "function Panel(props: Props) {\n", " let headerClasses: string[] = []\n" ], "labels": [ "keep", "keep", "keep", "keep", "add", "keep", "keep", "keep" ], "after_edit": [ " noHideOverflow?: boolean\n" ], "file_path": "studio/components/ui/Panel.tsx", "type": "add", "edit_start_line_idx": 13 }
@tailwind 'tailwindcss/base'; /* Start purging... */ @tailwind components; @tailwind utilities; /* Stop purging. */
packages/ui/src/components/Introduction/Introduction.css
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0001748943468555808, 0.0001748943468555808, 0.0001748943468555808, 0.0001748943468555808, 0 ]
{ "id": 10, "code_window": [ " }\n", "\n", " const content = (\n", " <div\n", " className={`\n", " overflow-hidden rounded-md border\n", " border-panel-border-light shadow-sm\n", " dark:border-panel-border-dark ${props.noMargin ? '' : 'mb-8'} ${props.className}`}\n", " >\n", " {props.title && (\n", " <div className={headerClasses.join(' ')}>\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ], "after_edit": [ " ${props.noHideOverflow ? '' : 'overflow-hidden'} rounded-md border\n" ], "file_path": "studio/components/ui/Panel.tsx", "type": "replace", "edit_start_line_idx": 33 }
import { AreaProps } from 'recharts' export interface CommonChartProps<D> extends Pick< HeaderType<D>, | 'highlightedValue' | 'highlightedLabel' | 'customDateFormat' | 'data' | 'format' | 'minimalHeader' | 'displayDateInUtc' > { title?: string className?: string isLoading?: boolean size?: 'small' | 'normal' | 'large' } export interface StackedChartProps<D> extends CommonChartProps<D> { xAxisKey: string xAxisFormatAsDate?: boolean dateFormat?: string yAxisKey: string stackKey: string } export type HeaderType<D> = { attribute: string focus: number | null format?: string highlightedValue?: number | string highlightedLabel?: string data: D[] customDateFormat?: string label: string minimalHeader?: boolean displayDateInUtc?: boolean } export interface Datum { [attribute: string]: number | string } export interface TimeseriesDatum extends Datum { timestamp: string }
studio/components/ui/Charts/Charts.types.tsx
1
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017128419131040573, 0.00016920830239541829, 0.00016692059580236673, 0.0001690865319687873, 0.0000014350079027281026 ]
{ "id": 10, "code_window": [ " }\n", "\n", " const content = (\n", " <div\n", " className={`\n", " overflow-hidden rounded-md border\n", " border-panel-border-light shadow-sm\n", " dark:border-panel-border-dark ${props.noMargin ? '' : 'mb-8'} ${props.className}`}\n", " >\n", " {props.title && (\n", " <div className={headerClasses.join(' ')}>\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ], "after_edit": [ " ${props.noHideOverflow ? '' : 'overflow-hidden'} rounded-md border\n" ], "file_path": "studio/components/ui/Panel.tsx", "type": "replace", "edit_start_line_idx": 33 }
<svg width="361" height="210" viewBox="0 0 361 210" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_1119_17619)"> <path d="M403.692 312.024H404.192V311.524V24C404.192 21.5147 402.177 19.5 399.692 19.5H31.4873C29.002 19.5 26.9873 21.5147 26.9873 24V311.524V312.024H27.4873H403.692Z" fill="#343434" stroke="#3E3E3E"/> <path d="M27.4873 24C27.4873 21.7909 29.2782 20 31.4873 20H399.692C401.901 20 403.692 21.7909 403.692 24V42.2113H27.4873V24Z" fill="#282828"/> <path d="M48.3297 115.164H39.7996V113.59L44.0647 109.746C44.6871 109.184 45.1996 108.611 45.6023 108.025C46.005 107.427 46.2064 106.799 46.2064 106.14V105.92C46.2064 105.151 46.005 104.559 45.6023 104.145C45.1996 103.717 44.6016 103.504 43.8084 103.504C43.0274 103.504 42.4233 103.705 41.9962 104.108C41.5813 104.498 41.2701 105.023 41.0627 105.682L39.6898 105.17C39.8119 104.791 39.9766 104.425 40.184 104.071C40.4037 103.705 40.6783 103.382 41.0078 103.101C41.3373 102.82 41.7339 102.595 42.1976 102.424C42.6735 102.253 43.2227 102.168 43.845 102.168C44.4796 102.168 45.0409 102.259 45.5291 102.442C46.0294 102.625 46.4443 102.881 46.7738 103.211C47.1155 103.54 47.3718 103.931 47.5426 104.382C47.7257 104.834 47.8172 105.328 47.8172 105.865C47.8172 106.353 47.744 106.811 47.5975 107.238C47.4633 107.665 47.268 108.074 47.0118 108.464C46.7677 108.855 46.4687 109.239 46.1148 109.618C45.7731 109.984 45.3887 110.35 44.9616 110.716L41.3922 113.828H48.3297V115.164ZM51.0317 115.164V113.828H54.6927V103.522H54.5645L51.3429 106.524L50.4459 105.554L53.8323 102.387H56.2303V113.828H59.5984V115.164H51.0317ZM48.3297 139.164H39.7996V137.59L44.0647 133.746C44.6871 133.184 45.1996 132.611 45.6023 132.025C46.005 131.427 46.2064 130.799 46.2064 130.14V129.92C46.2064 129.151 46.005 128.559 45.6023 128.145C45.1996 127.717 44.6016 127.504 43.8084 127.504C43.0274 127.504 42.4233 127.705 41.9962 128.108C41.5813 128.498 41.2701 129.023 41.0627 129.682L39.6898 129.17C39.8119 128.791 39.9766 128.425 40.184 128.071C40.4037 127.705 40.6783 127.382 41.0078 127.101C41.3373 126.82 41.7339 126.595 42.1976 126.424C42.6735 126.253 43.2227 126.168 43.845 126.168C44.4796 126.168 45.0409 126.259 45.5291 126.442C46.0294 126.625 46.4443 126.881 46.7738 127.211C47.1155 127.54 47.3718 127.931 47.5426 128.382C47.7257 128.834 47.8172 129.328 47.8172 129.865C47.8172 130.353 47.744 130.811 47.5975 131.238C47.4633 131.665 47.268 132.074 47.0118 132.464C46.7677 132.855 46.4687 133.239 46.1148 133.618C45.7731 133.984 45.3887 134.35 44.9616 134.716L41.3922 137.828H48.3297V139.164ZM59.3055 139.164H50.7754V137.59L55.0405 133.746C55.6628 133.184 56.1754 132.611 56.5781 132.025C56.9808 131.427 57.1821 130.799 57.1821 130.14V129.92C57.1821 129.151 56.9808 128.559 56.5781 128.145C56.1754 127.717 55.5774 127.504 54.7842 127.504C54.0032 127.504 53.3991 127.705 52.972 128.108C52.5571 128.498 52.2459 129.023 52.0385 129.682L50.6656 129.17C50.7876 128.791 50.9524 128.425 51.1598 128.071C51.3795 127.705 51.6541 127.382 51.9836 127.101C52.313 126.82 52.7096 126.595 53.1734 126.424C53.6493 126.253 54.1984 126.168 54.8208 126.168C55.4554 126.168 56.0167 126.259 56.5049 126.442C57.0052 126.625 57.4201 126.881 57.7496 127.211C58.0913 127.54 58.3475 127.931 58.5184 128.382C58.7014 128.834 58.793 129.328 58.793 129.865C58.793 130.353 58.7197 130.811 58.5733 131.238C58.4391 131.665 58.2438 132.074 57.9876 132.464C57.7435 132.855 57.4445 133.239 57.0906 133.618C56.7489 133.984 56.3645 134.35 55.9374 134.716L52.368 137.828H59.3055V139.164ZM48.3297 163.164H39.7996V161.59L44.0647 157.746C44.6871 157.184 45.1996 156.611 45.6023 156.025C46.005 155.427 46.2064 154.799 46.2064 154.14V153.92C46.2064 153.151 46.005 152.559 45.6023 152.145C45.1996 151.717 44.6016 151.504 43.8084 151.504C43.0274 151.504 42.4233 151.705 41.9962 152.108C41.5813 152.498 41.2701 153.023 41.0627 153.682L39.6898 153.17C39.8119 152.791 39.9766 152.425 40.184 152.071C40.4037 151.705 40.6783 151.382 41.0078 151.101C41.3373 150.82 41.7339 150.595 42.1976 150.424C42.6735 150.253 43.2227 150.168 43.845 150.168C44.4796 150.168 45.0409 150.259 45.5291 150.442C46.0294 150.625 46.4443 150.881 46.7738 151.211C47.1155 151.54 47.3718 151.931 47.5426 152.382C47.7257 152.834 47.8172 153.328 47.8172 153.865C47.8172 154.353 47.744 154.811 47.5975 155.238C47.4633 155.665 47.268 156.074 47.0118 156.464C46.7677 156.855 46.4687 157.239 46.1148 157.618C45.7731 157.984 45.3887 158.35 44.9616 158.716L41.3922 161.828H48.3297V163.164ZM54.4181 155.805C55.3089 155.805 55.974 155.61 56.4133 155.22C56.8649 154.817 57.0906 154.304 57.0906 153.682V153.554C57.0906 152.871 56.871 152.358 56.4316 152.016C56.0045 151.675 55.4432 151.504 54.7476 151.504C54.0642 151.504 53.509 151.656 53.0818 151.961C52.6669 152.254 52.3252 152.645 52.0568 153.133L50.9036 152.254C51.0622 151.998 51.2575 151.748 51.4893 151.504C51.7212 151.248 51.9897 151.022 52.2947 150.827C52.612 150.631 52.972 150.473 53.3747 150.351C53.7896 150.229 54.2595 150.168 54.7842 150.168C55.3333 150.168 55.8459 150.241 56.3218 150.387C56.7977 150.521 57.2126 150.729 57.5665 151.01C57.9204 151.278 58.195 151.614 58.3903 152.016C58.5977 152.419 58.7014 152.877 58.7014 153.389C58.7014 153.804 58.6343 154.176 58.5001 154.506C58.3781 154.835 58.2011 155.122 57.9692 155.366C57.7496 155.61 57.4872 155.818 57.1821 155.989C56.8771 156.159 56.5537 156.288 56.212 156.373V156.446C56.5659 156.519 56.9076 156.641 57.2371 156.812C57.5665 156.971 57.8594 157.184 58.1157 157.453C58.372 157.709 58.5733 158.026 58.7197 158.405C58.8784 158.771 58.9577 159.192 58.9577 159.668C58.9577 160.217 58.8479 160.723 58.6282 161.187C58.4208 161.639 58.1218 162.029 57.7313 162.359C57.353 162.676 56.8893 162.926 56.3401 163.109C55.8032 163.292 55.2052 163.384 54.5462 163.384C53.9849 163.384 53.4846 163.323 53.0452 163.201C52.6181 163.079 52.2337 162.914 51.892 162.706C51.5625 162.499 51.2697 162.267 51.0134 162.011C50.7693 161.755 50.5497 161.486 50.3544 161.205L51.5076 160.327C51.6785 160.583 51.8554 160.815 52.0385 161.022C52.2215 161.23 52.429 161.413 52.6608 161.572C52.9049 161.718 53.1795 161.834 53.4846 161.919C53.7896 162.005 54.1435 162.047 54.5462 162.047C55.4493 162.047 56.1388 161.84 56.6147 161.425C57.1028 161.01 57.3469 160.418 57.3469 159.65V159.503C57.3469 158.746 57.1089 158.161 56.633 157.746C56.1693 157.331 55.4676 157.123 54.5279 157.123H53.0086V155.805H54.4181Z" fill="#A0A0A0"/> <path d="M43.4904 35.3126C46.1947 35.3126 48.387 33.1277 48.387 30.4326C48.387 27.7375 46.1947 25.5527 43.4904 25.5527C40.7861 25.5527 38.5938 27.7375 38.5938 30.4326C38.5938 33.1277 40.7861 35.3126 43.4904 35.3126Z" fill="#3E3E3E"/> <path d="M57.1652 35.3126C59.8695 35.3126 62.0619 33.1277 62.0619 30.4326C62.0619 27.7375 59.8695 25.5527 57.1652 25.5527C54.4609 25.5527 52.2686 27.7375 52.2686 30.4326C52.2686 33.1277 54.4609 35.3126 57.1652 35.3126Z" fill="#3E3E3E"/> <path d="M70.8312 35.3126C73.5356 35.3126 75.7279 33.1277 75.7279 30.4326C75.7279 27.7375 73.5356 25.5527 70.8312 25.5527C68.1269 25.5527 65.9346 27.7375 65.9346 30.4326C65.9346 33.1277 68.1269 35.3126 70.8312 35.3126Z" fill="#3E3E3E"/> <path d="M228.23 133.471C228.23 132.58 228.328 131.726 228.523 130.909C228.731 130.079 229.005 129.31 229.347 128.602C229.701 127.894 230.11 127.26 230.573 126.698C231.037 126.125 231.525 125.643 232.038 125.252H233.521C232.984 125.655 232.477 126.125 232.001 126.662C231.537 127.187 231.123 127.766 230.756 128.401C230.403 129.023 230.122 129.7 229.914 130.433C229.707 131.153 229.603 131.903 229.603 132.684V134.258C229.603 135.039 229.707 135.796 229.914 136.528C230.122 137.248 230.403 137.925 230.756 138.56C231.123 139.182 231.537 139.756 232.001 140.281C232.477 140.818 232.984 141.287 233.521 141.69H232.038C231.525 141.312 231.037 140.836 230.573 140.262C230.11 139.689 229.701 139.048 229.347 138.34C229.005 137.633 228.731 136.87 228.523 136.052C228.328 135.222 228.23 134.362 228.23 133.471Z" fill="#A0A0A0"/> <path d="M241.275 139.384C240.591 139.384 239.981 139.268 239.444 139.036C238.919 138.792 238.474 138.456 238.108 138.029C237.742 137.602 237.461 137.083 237.266 136.473C237.083 135.863 236.991 135.186 236.991 134.441C236.991 133.697 237.089 133.02 237.284 132.41C237.479 131.799 237.76 131.281 238.126 130.854C238.492 130.414 238.938 130.079 239.462 129.847C239.987 129.615 240.585 129.499 241.256 129.499C242.172 129.499 242.916 129.7 243.49 130.103C244.063 130.506 244.484 131.031 244.753 131.677L243.581 132.3C243.41 131.812 243.123 131.433 242.721 131.165C242.33 130.896 241.842 130.762 241.256 130.762C240.829 130.762 240.445 130.835 240.103 130.982C239.774 131.116 239.493 131.311 239.261 131.568C239.029 131.824 238.852 132.129 238.73 132.483C238.62 132.837 238.565 133.221 238.565 133.636V135.247C238.565 135.662 238.62 136.046 238.73 136.4C238.852 136.754 239.029 137.059 239.261 137.315C239.493 137.572 239.78 137.773 240.121 137.919C240.463 138.054 240.854 138.121 241.293 138.121C241.927 138.121 242.452 137.974 242.867 137.681C243.282 137.388 243.612 136.986 243.856 136.473L244.899 137.187C244.618 137.822 244.179 138.346 243.581 138.761C242.995 139.176 242.226 139.384 241.275 139.384Z" fill="#A0A0A0"/> <path d="M247.418 139.164V129.719H248.772V130.817H248.846C248.992 130.451 249.2 130.14 249.468 129.883C249.737 129.627 250.133 129.499 250.658 129.499C251.207 129.499 251.616 129.639 251.884 129.92C252.153 130.189 252.318 130.542 252.379 130.982H252.433C252.604 130.555 252.848 130.201 253.166 129.92C253.483 129.639 253.922 129.499 254.484 129.499C255.252 129.499 255.765 129.768 256.021 130.304C256.29 130.841 256.424 131.61 256.424 132.611V139.164H255.069V132.849C255.069 132.043 254.984 131.488 254.813 131.183C254.654 130.866 254.355 130.707 253.916 130.707C253.526 130.707 253.208 130.835 252.964 131.092C252.72 131.336 252.598 131.714 252.598 132.226V139.164H251.244V132.849C251.244 132.043 251.158 131.488 250.987 131.183C250.829 130.866 250.536 130.707 250.109 130.707C249.718 130.707 249.395 130.835 249.139 131.092C248.895 131.336 248.772 131.714 248.772 132.226V139.164H247.418Z" fill="#A0A0A0"/> <path d="M262.11 136.675H264.471L262.366 141.745H261.139L262.11 136.675Z" fill="#A0A0A0"/> <path d="M283.915 139.164L280.528 129.719H282.011L283.366 133.673L284.83 137.938H284.903L286.368 133.673L287.722 129.719H289.168L285.782 139.164H283.915Z" fill="#A0A0A0"/> <path d="M296.41 127.632C295.983 127.632 295.684 127.547 295.513 127.376C295.342 127.193 295.257 126.967 295.257 126.698V126.406C295.257 126.137 295.342 125.917 295.513 125.747C295.684 125.564 295.983 125.472 296.41 125.472C296.837 125.472 297.136 125.564 297.307 125.747C297.478 125.917 297.563 126.137 297.563 126.406V126.698C297.563 126.967 297.478 127.193 297.307 127.376C297.136 127.547 296.837 127.632 296.41 127.632ZM292.273 137.919H295.678V130.963H292.273V129.719H297.142V137.919H300.327V139.164H292.273V137.919Z" fill="#A0A0A0"/> <path d="M306.965 139.384C306.281 139.384 305.665 139.268 305.116 139.036C304.579 138.804 304.115 138.475 303.725 138.047C303.346 137.608 303.053 137.089 302.846 136.492C302.639 135.881 302.535 135.204 302.535 134.46C302.535 133.703 302.639 133.02 302.846 132.41C303.066 131.799 303.365 131.281 303.743 130.854C304.121 130.414 304.573 130.079 305.097 129.847C305.634 129.615 306.226 129.499 306.873 129.499C307.508 129.499 308.081 129.615 308.594 129.847C309.118 130.079 309.564 130.402 309.93 130.817C310.296 131.22 310.577 131.702 310.772 132.263C310.967 132.824 311.065 133.441 311.065 134.112V134.807H304.072V135.247C304.072 135.662 304.14 136.046 304.274 136.4C304.408 136.754 304.597 137.059 304.841 137.315C305.097 137.572 305.403 137.773 305.756 137.919C306.123 138.054 306.525 138.121 306.965 138.121C307.599 138.121 308.148 137.974 308.612 137.681C309.076 137.388 309.43 136.986 309.674 136.473L310.754 137.205C310.473 137.84 310.003 138.365 309.344 138.78C308.697 139.182 307.904 139.384 306.965 139.384ZM306.873 130.707C306.47 130.707 306.098 130.78 305.756 130.927C305.415 131.073 305.116 131.275 304.859 131.531C304.615 131.787 304.42 132.092 304.274 132.446C304.14 132.788 304.072 133.166 304.072 133.581V133.709H309.491V133.508C309.491 133.093 309.424 132.715 309.289 132.373C309.167 132.031 308.99 131.738 308.758 131.494C308.539 131.238 308.264 131.043 307.935 130.909C307.617 130.774 307.264 130.707 306.873 130.707Z" fill="#A0A0A0"/> <path d="M312.833 129.719H314.133L315.213 137.883H315.378L316.988 129.719H318.599L320.21 137.883H320.375L321.455 129.719H322.718L321.272 139.164H319.368L317.867 131.256H317.721L316.183 139.164H314.279L312.833 129.719Z" fill="#A0A0A0"/> <path d="M324.999 129.719H326.463V131.256H326.536C327.147 130.085 328.117 129.499 329.447 129.499C330.606 129.499 331.509 129.932 332.156 130.799C332.815 131.665 333.145 132.879 333.145 134.441C333.145 136.003 332.815 137.218 332.156 138.084C331.509 138.95 330.606 139.384 329.447 139.384C328.117 139.384 327.147 138.798 326.536 137.626H326.463V142.825H324.999V129.719ZM328.88 138.084C329.734 138.084 330.393 137.828 330.856 137.315C331.332 136.791 331.57 136.101 331.57 135.247V133.636C331.57 132.782 331.332 132.098 330.856 131.586C330.393 131.061 329.734 130.799 328.88 130.799C328.55 130.799 328.239 130.841 327.946 130.927C327.653 131.012 327.397 131.14 327.177 131.311C326.958 131.47 326.781 131.671 326.646 131.915C326.524 132.147 326.463 132.422 326.463 132.739V136.144C326.463 136.461 326.524 136.742 326.646 136.986C326.781 137.218 326.958 137.419 327.177 137.59C327.397 137.748 327.653 137.87 327.946 137.956C328.239 138.041 328.55 138.084 328.88 138.084Z" fill="#A0A0A0"/> <path d="M339.727 139.384C339.068 139.384 338.47 139.268 337.933 139.036C337.409 138.804 336.957 138.475 336.579 138.047C336.213 137.608 335.932 137.089 335.737 136.492C335.541 135.881 335.444 135.198 335.444 134.441C335.444 133.697 335.541 133.02 335.737 132.41C335.932 131.799 336.213 131.281 336.579 130.854C336.957 130.414 337.409 130.079 337.933 129.847C338.47 129.615 339.068 129.499 339.727 129.499C340.386 129.499 340.978 129.615 341.503 129.847C342.04 130.079 342.491 130.414 342.857 130.854C343.236 131.281 343.522 131.799 343.718 132.41C343.913 133.02 344.01 133.697 344.01 134.441C344.01 135.198 343.913 135.881 343.718 136.492C343.522 137.089 343.236 137.608 342.857 138.047C342.491 138.475 342.04 138.804 341.503 139.036C340.978 139.268 340.386 139.384 339.727 139.384ZM339.727 138.121C340.545 138.121 341.204 137.877 341.704 137.388C342.204 136.9 342.455 136.144 342.455 135.119V133.764C342.455 132.739 342.204 131.982 341.704 131.494C341.204 131.006 340.545 130.762 339.727 130.762C338.91 130.762 338.251 131.006 337.75 131.494C337.25 131.982 337 132.739 337 133.764V135.119C337 136.144 337.25 136.9 337.75 137.388C338.251 137.877 338.91 138.121 339.727 138.121Z" fill="#A0A0A0"/> <path d="M346.621 137.919H349.385V130.963H346.621V129.719H350.849V132.098H350.941C351.136 131.354 351.502 130.774 352.039 130.359C352.588 129.932 353.284 129.719 354.126 129.719H355.444V131.183H353.668C352.826 131.183 352.143 131.427 351.618 131.915C351.106 132.403 350.849 133.044 350.849 133.837V137.919H354.51V139.164H346.621V137.919Z" fill="#A0A0A0"/> <path d="M362.136 139.164C361.416 139.164 360.886 138.963 360.544 138.56C360.214 138.157 360.05 137.639 360.05 137.004V130.963H356.901V129.719H359.244C359.561 129.719 359.781 129.658 359.903 129.536C360.037 129.401 360.104 129.176 360.104 128.858V126.387H361.514V129.719H365.816V130.963H361.514V137.919H365.816V139.164H362.136Z" fill="#A0A0A0"/> <path d="M371.867 136.675H374.229L372.124 141.745H370.897L371.867 136.675Z" fill="#A0A0A0"/> <path d="M390.634 137.919H393.819V130.963H390.451V129.719H393.819V127.778C393.819 127.144 393.984 126.625 394.313 126.222C394.655 125.82 395.186 125.618 395.906 125.618H399.072V126.863H395.283V129.719H399.072V130.963H395.283V137.919H398.651V139.164H390.634V137.919Z" fill="#A0A0A0"/> <path d="M405.582 139.384C404.923 139.384 404.325 139.268 403.788 139.036C403.263 138.804 402.812 138.475 402.433 138.047C402.067 137.608 401.787 137.089 401.591 136.492C401.396 135.881 401.299 135.198 401.299 134.441C401.299 133.697 401.396 133.02 401.591 132.41C401.787 131.799 402.067 131.281 402.433 130.854C402.812 130.414 403.263 130.079 403.788 129.847C404.325 129.615 404.923 129.499 405.582 129.499C406.241 129.499 406.833 129.615 407.357 129.847C407.894 130.079 408.346 130.414 408.712 130.854C409.09 131.281 409.377 131.799 409.572 132.41C409.768 133.02 409.865 133.697 409.865 134.441C409.865 135.198 409.768 135.881 409.572 136.492C409.377 137.089 409.09 137.608 408.712 138.047C408.346 138.475 407.894 138.804 407.357 139.036C406.833 139.268 406.241 139.384 405.582 139.384ZM405.582 138.121C406.399 138.121 407.058 137.877 407.559 137.388C408.059 136.9 408.309 136.144 408.309 135.119V133.764C408.309 132.739 408.059 131.982 407.559 131.494C407.058 131.006 406.399 130.762 405.582 130.762C404.764 130.762 404.105 131.006 403.605 131.494C403.105 131.982 402.854 132.739 402.854 133.764V135.119C402.854 136.144 403.105 136.9 403.605 137.388C404.105 137.877 404.764 138.121 405.582 138.121Z" fill="#A0A0A0"/> <path d="M412.476 137.919H415.24V130.963H412.476V129.719H416.704V132.098H416.796C416.991 131.354 417.357 130.774 417.894 130.359C418.443 129.932 419.139 129.719 419.981 129.719H421.299V131.183H419.523C418.681 131.183 417.998 131.427 417.473 131.915C416.96 132.403 416.704 133.044 416.704 133.837V137.919H420.365V139.164H412.476V137.919Z" fill="#A0A0A0"/> <path d="M427.863 139.384C427.18 139.384 426.569 139.268 426.032 139.036C425.508 138.792 425.062 138.456 424.696 138.029C424.33 137.602 424.049 137.083 423.854 136.473C423.671 135.863 423.58 135.186 423.58 134.441C423.58 133.697 423.677 133.02 423.872 132.41C424.068 131.799 424.348 131.281 424.714 130.854C425.081 130.414 425.526 130.079 426.051 129.847C426.575 129.615 427.173 129.499 427.845 129.499C428.76 129.499 429.504 129.7 430.078 130.103C430.651 130.506 431.072 131.031 431.341 131.677L430.169 132.3C429.999 131.812 429.712 131.433 429.309 131.165C428.918 130.896 428.43 130.762 427.845 130.762C427.417 130.762 427.033 130.835 426.691 130.982C426.362 131.116 426.081 131.311 425.849 131.568C425.618 131.824 425.441 132.129 425.319 132.483C425.209 132.837 425.154 133.221 425.154 133.636V135.247C425.154 135.662 425.209 136.046 425.319 136.4C425.441 136.754 425.618 137.059 425.849 137.315C426.081 137.572 426.368 137.773 426.71 137.919C427.051 138.054 427.442 138.121 427.881 138.121C428.516 138.121 429.041 137.974 429.455 137.681C429.87 137.388 430.2 136.986 430.444 136.473L431.487 137.187C431.207 137.822 430.767 138.346 430.169 138.761C429.584 139.176 428.815 139.384 427.863 139.384Z" fill="#A0A0A0"/> <path d="M438.674 139.384C437.991 139.384 437.374 139.268 436.825 139.036C436.288 138.804 435.824 138.475 435.434 138.047C435.056 137.608 434.763 137.089 434.555 136.492C434.348 135.881 434.244 135.204 434.244 134.46C434.244 133.703 434.348 133.02 434.555 132.41C434.775 131.799 435.074 131.281 435.452 130.854C435.831 130.414 436.282 130.079 436.807 129.847C437.344 129.615 437.936 129.499 438.582 129.499C439.217 129.499 439.791 129.615 440.303 129.847C440.828 130.079 441.273 130.402 441.639 130.817C442.005 131.22 442.286 131.702 442.481 132.263C442.677 132.824 442.774 133.441 442.774 134.112V134.807H435.782V135.247C435.782 135.662 435.849 136.046 435.983 136.4C436.117 136.754 436.306 137.059 436.551 137.315C436.807 137.572 437.112 137.773 437.466 137.919C437.832 138.054 438.235 138.121 438.674 138.121C439.309 138.121 439.858 137.974 440.321 137.681C440.785 137.388 441.139 136.986 441.383 136.473L442.463 137.205C442.182 137.84 441.713 138.365 441.054 138.78C440.407 139.182 439.614 139.384 438.674 139.384ZM438.582 130.707C438.18 130.707 437.808 130.78 437.466 130.927C437.124 131.073 436.825 131.275 436.569 131.531C436.325 131.787 436.13 132.092 435.983 132.446C435.849 132.788 435.782 133.166 435.782 133.581V133.709H441.2V133.508C441.2 133.093 441.133 132.715 440.999 132.373C440.877 132.031 440.7 131.738 440.468 131.494C440.248 131.238 439.974 131.043 439.644 130.909C439.327 130.774 438.973 130.707 438.582 130.707Z" fill="#A0A0A0"/> <path d="M451.224 133.471C451.224 134.362 451.12 135.222 450.913 136.052C450.717 136.87 450.443 137.633 450.089 138.34C449.747 139.048 449.345 139.689 448.881 140.262C448.417 140.836 447.929 141.312 447.417 141.69H445.934C446.459 141.287 446.959 140.818 447.435 140.281C447.911 139.756 448.326 139.182 448.68 138.56C449.046 137.925 449.332 137.248 449.54 136.528C449.747 135.796 449.851 135.039 449.851 134.258V132.684C449.851 131.903 449.747 131.153 449.54 130.433C449.332 129.7 449.046 129.023 448.68 128.401C448.326 127.766 447.911 127.187 447.435 126.662C446.959 126.125 446.459 125.655 445.934 125.252H447.417C447.929 125.643 448.417 126.125 448.881 126.698C449.345 127.26 449.747 127.894 450.089 128.602C450.443 129.31 450.717 130.079 450.913 130.909C451.12 131.726 451.224 132.58 451.224 133.471Z" fill="#A0A0A0"/> <path d="M471.784 141.69C471.272 141.69 470.887 141.544 470.631 141.251C470.375 140.97 470.247 140.616 470.247 140.189V139.036C470.247 138.706 470.277 138.42 470.338 138.176C470.411 137.932 470.497 137.712 470.595 137.517C470.692 137.321 470.802 137.15 470.924 137.004C471.046 136.845 471.162 136.699 471.272 136.565C471.479 136.321 471.62 136.113 471.693 135.942C471.778 135.759 471.821 135.57 471.821 135.375C471.821 134.911 471.607 134.576 471.18 134.368C470.753 134.148 470.125 134.039 469.295 134.039H467.867V132.904H469.295C470.125 132.904 470.753 132.8 471.18 132.593C471.607 132.373 471.821 132.031 471.821 131.568C471.821 131.372 471.778 131.189 471.693 131.018C471.62 130.835 471.479 130.622 471.272 130.378C471.162 130.243 471.046 130.103 470.924 129.957C470.802 129.798 470.692 129.627 470.595 129.444C470.497 129.249 470.411 129.029 470.338 128.785C470.277 128.529 470.247 128.236 470.247 127.907V126.753C470.247 126.326 470.375 125.972 470.631 125.692C470.887 125.399 471.272 125.252 471.784 125.252H475.006V126.387H471.51V127.797C471.51 128.297 471.583 128.681 471.729 128.95C471.876 129.218 472.047 129.481 472.242 129.737C472.449 130.005 472.645 130.286 472.828 130.579C473.011 130.86 473.102 131.195 473.102 131.586C473.102 132.098 472.919 132.513 472.553 132.831C472.199 133.148 471.711 133.349 471.089 133.435V133.508C471.711 133.593 472.199 133.795 472.553 134.112C472.919 134.429 473.102 134.844 473.102 135.357C473.102 135.747 473.011 136.089 472.828 136.382C472.645 136.662 472.449 136.937 472.242 137.205C472.047 137.462 471.876 137.724 471.729 137.993C471.583 138.261 471.51 138.645 471.51 139.146V140.555H475.006V141.69H471.784Z" fill="#A0A0A0"/> <path d="M177.379 161.626H177.305C176.695 162.798 175.725 163.384 174.395 163.384C173.236 163.384 172.326 162.95 171.667 162.084C171.021 161.218 170.697 160.003 170.697 158.441C170.697 156.879 171.021 155.665 171.667 154.799C172.326 153.932 173.236 153.499 174.395 153.499C175.725 153.499 176.695 154.085 177.305 155.256H177.379V149.618H178.843V163.164H177.379V161.626ZM174.962 162.084C175.292 162.084 175.603 162.041 175.896 161.956C176.189 161.87 176.445 161.748 176.665 161.59C176.884 161.419 177.055 161.218 177.177 160.986C177.311 160.742 177.379 160.461 177.379 160.144V156.739C177.379 156.422 177.311 156.147 177.177 155.915C177.055 155.671 176.884 155.47 176.665 155.311C176.445 155.14 176.189 155.012 175.896 154.927C175.603 154.841 175.292 154.799 174.962 154.799C174.108 154.799 173.443 155.061 172.967 155.586C172.503 156.098 172.271 156.782 172.271 157.636V159.247C172.271 160.101 172.503 160.791 172.967 161.315C173.443 161.828 174.108 162.084 174.962 162.084Z" fill="#A0A0A0"/> <path d="M186.652 151.632C186.225 151.632 185.926 151.547 185.755 151.376C185.584 151.193 185.499 150.967 185.499 150.698V150.406C185.499 150.137 185.584 149.917 185.755 149.747C185.926 149.564 186.225 149.472 186.652 149.472C187.079 149.472 187.378 149.564 187.549 149.747C187.72 149.917 187.805 150.137 187.805 150.406V150.698C187.805 150.967 187.72 151.193 187.549 151.376C187.378 151.547 187.079 151.632 186.652 151.632ZM182.515 161.919H185.92V154.963H182.515V153.719H187.384V161.919H190.569V163.164H182.515V161.919Z" fill="#A0A0A0"/> <path d="M197.152 163.384C196.163 163.384 195.309 163.219 194.589 162.889C193.881 162.548 193.277 162.096 192.777 161.535L193.765 160.675C194.217 161.15 194.711 161.517 195.248 161.773C195.785 162.029 196.432 162.157 197.188 162.157C197.921 162.157 198.519 162.029 198.982 161.773C199.458 161.504 199.696 161.089 199.696 160.528C199.696 160.284 199.647 160.083 199.55 159.924C199.464 159.753 199.342 159.619 199.184 159.521C199.025 159.424 198.848 159.351 198.653 159.302C198.458 159.241 198.25 159.192 198.03 159.155L196.548 158.936C196.218 158.887 195.858 158.82 195.468 158.734C195.089 158.649 194.742 158.515 194.424 158.332C194.107 158.136 193.839 157.88 193.619 157.563C193.412 157.245 193.308 156.831 193.308 156.318C193.308 155.842 193.399 155.433 193.582 155.092C193.778 154.738 194.046 154.445 194.388 154.213C194.729 153.969 195.132 153.792 195.596 153.682C196.06 153.56 196.566 153.499 197.115 153.499C197.969 153.499 198.708 153.633 199.33 153.902C199.965 154.17 200.508 154.542 200.959 155.018L200.007 155.915C199.898 155.781 199.757 155.647 199.586 155.513C199.428 155.366 199.226 155.238 198.982 155.128C198.75 155.006 198.476 154.909 198.159 154.835C197.841 154.762 197.475 154.725 197.06 154.725C196.316 154.725 195.742 154.854 195.34 155.11C194.949 155.366 194.754 155.738 194.754 156.226C194.754 156.471 194.797 156.678 194.882 156.849C194.98 157.007 195.108 157.136 195.266 157.233C195.425 157.331 195.602 157.41 195.797 157.471C196.005 157.52 196.212 157.563 196.42 157.599L197.902 157.819C198.244 157.868 198.604 157.935 198.982 158.02C199.361 158.106 199.708 158.246 200.026 158.441C200.343 158.624 200.605 158.875 200.813 159.192C201.032 159.509 201.142 159.924 201.142 160.437C201.142 161.376 200.776 162.102 200.044 162.615C199.324 163.127 198.36 163.384 197.152 163.384Z" fill="#A0A0A0"/> <path d="M204.265 153.719H205.73V155.256H205.803C206.413 154.085 207.383 153.499 208.713 153.499C209.873 153.499 210.776 153.932 211.423 154.799C212.081 155.665 212.411 156.879 212.411 158.441C212.411 160.003 212.081 161.218 211.423 162.084C210.776 162.95 209.873 163.384 208.713 163.384C207.383 163.384 206.413 162.798 205.803 161.626H205.73V166.825H204.265V153.719ZM208.146 162.084C209 162.084 209.659 161.828 210.123 161.315C210.599 160.791 210.837 160.101 210.837 159.247V157.636C210.837 156.782 210.599 156.098 210.123 155.586C209.659 155.061 209 154.799 208.146 154.799C207.816 154.799 207.505 154.841 207.212 154.927C206.919 155.012 206.663 155.14 206.444 155.311C206.224 155.47 206.047 155.671 205.913 155.915C205.791 156.147 205.73 156.422 205.73 156.739V160.144C205.73 160.461 205.791 160.742 205.913 160.986C206.047 161.218 206.224 161.419 206.444 161.59C206.663 161.748 206.919 161.87 207.212 161.956C207.505 162.041 207.816 162.084 208.146 162.084Z" fill="#A0A0A0"/> <path d="M214.966 161.919H218.261V150.863H214.966V149.618H219.726V161.919H223.021V163.164H214.966V161.919Z" fill="#A0A0A0"/> <path d="M233.539 163.164C232.965 163.164 232.556 163.018 232.312 162.725C232.068 162.432 231.916 162.066 231.855 161.626H231.763C231.556 162.176 231.22 162.609 230.756 162.926C230.305 163.231 229.695 163.384 228.926 163.384C227.938 163.384 227.15 163.127 226.565 162.615C225.979 162.102 225.686 161.401 225.686 160.51C225.686 159.631 226.003 158.954 226.638 158.478C227.285 158.002 228.322 157.764 229.75 157.764H231.763V156.831C231.763 156.135 231.568 155.616 231.177 155.275C230.787 154.921 230.232 154.744 229.512 154.744C228.877 154.744 228.359 154.872 227.956 155.128C227.553 155.372 227.23 155.708 226.986 156.135L225.997 155.403C226.119 155.159 226.284 154.921 226.491 154.689C226.699 154.457 226.955 154.256 227.26 154.085C227.565 153.902 227.913 153.761 228.304 153.664C228.694 153.554 229.127 153.499 229.603 153.499C230.714 153.499 231.592 153.78 232.239 154.341C232.898 154.902 233.228 155.683 233.228 156.684V161.883H234.546V163.164H233.539ZM229.182 162.157C229.561 162.157 229.902 162.115 230.207 162.029C230.525 161.932 230.799 161.809 231.031 161.663C231.263 161.504 231.44 161.321 231.562 161.114C231.696 160.894 231.763 160.662 231.763 160.418V158.862H229.75C228.871 158.862 228.23 158.984 227.828 159.228C227.425 159.473 227.224 159.826 227.224 160.29V160.675C227.224 161.163 227.394 161.535 227.736 161.791C228.09 162.035 228.572 162.157 229.182 162.157Z" fill="#A0A0A0"/> <path d="M244.002 153.719H245.466L240.78 165.232C240.671 165.501 240.549 165.733 240.414 165.928C240.28 166.136 240.121 166.3 239.938 166.422C239.755 166.557 239.536 166.654 239.279 166.715C239.023 166.788 238.718 166.825 238.364 166.825H236.973V165.58H239.17L240.231 162.981L236.424 153.719H237.925L239.517 157.673L240.927 161.26H241L242.41 157.673L244.002 153.719Z" fill="#A0A0A0"/> <path d="M258.54 156.355V155.11H267.253V156.355H258.54ZM258.54 160.016V158.771H267.253V160.016H258.54Z" fill="#A0A0A0"/> <path d="M285.178 163.384C284.494 163.384 283.884 163.268 283.347 163.036C282.823 162.792 282.377 162.456 282.011 162.029C281.645 161.602 281.364 161.083 281.169 160.473C280.986 159.863 280.894 159.186 280.894 158.441C280.894 157.697 280.992 157.02 281.187 156.41C281.383 155.799 281.663 155.281 282.029 154.854C282.395 154.414 282.841 154.079 283.366 153.847C283.89 153.615 284.488 153.499 285.159 153.499C286.075 153.499 286.819 153.7 287.393 154.103C287.966 154.506 288.387 155.031 288.656 155.677L287.484 156.3C287.313 155.812 287.027 155.433 286.624 155.165C286.233 154.896 285.745 154.762 285.159 154.762C284.732 154.762 284.348 154.835 284.006 154.982C283.677 155.116 283.396 155.311 283.164 155.568C282.932 155.824 282.755 156.129 282.633 156.483C282.524 156.837 282.469 157.221 282.469 157.636V159.247C282.469 159.662 282.524 160.046 282.633 160.4C282.755 160.754 282.932 161.059 283.164 161.315C283.396 161.572 283.683 161.773 284.025 161.919C284.366 162.054 284.757 162.121 285.196 162.121C285.831 162.121 286.355 161.974 286.77 161.681C287.185 161.388 287.515 160.986 287.759 160.473L288.802 161.187C288.521 161.822 288.082 162.346 287.484 162.761C286.898 163.176 286.13 163.384 285.178 163.384Z" fill="#A0A0A0"/> <path d="M291.321 163.164V153.719H292.676V154.817H292.749C292.895 154.451 293.103 154.14 293.371 153.883C293.64 153.627 294.036 153.499 294.561 153.499C295.11 153.499 295.519 153.639 295.787 153.92C296.056 154.189 296.221 154.542 296.282 154.982H296.337C296.507 154.555 296.751 154.201 297.069 153.92C297.386 153.639 297.825 153.499 298.387 153.499C299.156 153.499 299.668 153.768 299.924 154.304C300.193 154.841 300.327 155.61 300.327 156.611V163.164H298.972V156.849C298.972 156.043 298.887 155.488 298.716 155.183C298.558 154.866 298.259 154.707 297.819 154.707C297.429 154.707 297.111 154.835 296.867 155.092C296.623 155.336 296.501 155.714 296.501 156.226V163.164H295.147V156.849C295.147 156.043 295.061 155.488 294.89 155.183C294.732 154.866 294.439 154.707 294.012 154.707C293.621 154.707 293.298 154.835 293.042 155.092C292.798 155.336 292.676 155.714 292.676 156.226V163.164H291.321Z" fill="#A0A0A0"/> <path d="M306.8 163.329C306.299 163.329 305.946 163.225 305.738 163.018C305.543 162.81 305.445 162.548 305.445 162.23V161.901C305.445 161.584 305.543 161.321 305.738 161.114C305.946 160.906 306.299 160.803 306.8 160.803C307.3 160.803 307.648 160.906 307.843 161.114C308.051 161.321 308.154 161.584 308.154 161.901V162.23C308.154 162.548 308.051 162.81 307.843 163.018C307.648 163.225 307.3 163.329 306.8 163.329Z" fill="#A0A0A0"/> <path d="M320.064 161.626H319.99C319.38 162.798 318.41 163.384 317.08 163.384C315.921 163.384 315.012 162.95 314.353 162.084C313.706 161.218 313.382 160.003 313.382 158.441C313.382 156.879 313.706 155.665 314.353 154.799C315.012 153.932 315.921 153.499 317.08 153.499C318.41 153.499 319.38 154.085 319.99 155.256H320.064V149.618H321.528V163.164H320.064V161.626ZM317.647 162.084C317.977 162.084 318.288 162.041 318.581 161.956C318.874 161.87 319.13 161.748 319.35 161.59C319.569 161.419 319.74 161.218 319.862 160.986C319.997 160.742 320.064 160.461 320.064 160.144V156.739C320.064 156.422 319.997 156.147 319.862 155.915C319.74 155.671 319.569 155.47 319.35 155.311C319.13 155.14 318.874 155.012 318.581 154.927C318.288 154.841 317.977 154.799 317.647 154.799C316.793 154.799 316.128 155.061 315.652 155.586C315.189 156.098 314.957 156.782 314.957 157.636V159.247C314.957 160.101 315.189 160.791 315.652 161.315C316.128 161.828 316.793 162.084 317.647 162.084Z" fill="#A0A0A0"/> <path d="M329.337 151.632C328.91 151.632 328.611 151.547 328.44 151.376C328.269 151.193 328.184 150.967 328.184 150.698V150.406C328.184 150.137 328.269 149.917 328.44 149.747C328.611 149.564 328.91 149.472 329.337 149.472C329.764 149.472 330.063 149.564 330.234 149.747C330.405 149.917 330.49 150.137 330.49 150.406V150.698C330.49 150.967 330.405 151.193 330.234 151.376C330.063 151.547 329.764 151.632 329.337 151.632ZM325.2 161.919H328.605V154.963H325.2V153.719H330.069V161.919H333.254V163.164H325.2V161.919Z" fill="#A0A0A0"/> <path d="M339.837 163.384C338.849 163.384 337.994 163.219 337.274 162.889C336.567 162.548 335.962 162.096 335.462 161.535L336.451 160.675C336.902 161.15 337.396 161.517 337.933 161.773C338.47 162.029 339.117 162.157 339.874 162.157C340.606 162.157 341.204 162.029 341.667 161.773C342.143 161.504 342.381 161.089 342.381 160.528C342.381 160.284 342.333 160.083 342.235 159.924C342.15 159.753 342.027 159.619 341.869 159.521C341.71 159.424 341.533 159.351 341.338 159.302C341.143 159.241 340.935 159.192 340.716 159.155L339.233 158.936C338.903 158.887 338.543 158.82 338.153 158.734C337.775 158.649 337.427 158.515 337.11 158.332C336.792 158.136 336.524 157.88 336.304 157.563C336.097 157.245 335.993 156.831 335.993 156.318C335.993 155.842 336.085 155.433 336.268 155.092C336.463 154.738 336.731 154.445 337.073 154.213C337.415 153.969 337.817 153.792 338.281 153.682C338.745 153.56 339.251 153.499 339.8 153.499C340.655 153.499 341.393 153.633 342.015 153.902C342.65 154.17 343.193 154.542 343.644 155.018L342.693 155.915C342.583 155.781 342.442 155.647 342.272 155.513C342.113 155.366 341.912 155.238 341.667 155.128C341.436 155.006 341.161 154.909 340.844 154.835C340.526 154.762 340.16 154.725 339.745 154.725C339.001 154.725 338.428 154.854 338.025 155.11C337.634 155.366 337.439 155.738 337.439 156.226C337.439 156.471 337.482 156.678 337.567 156.849C337.665 157.007 337.793 157.136 337.952 157.233C338.11 157.331 338.287 157.41 338.482 157.471C338.69 157.52 338.897 157.563 339.105 157.599L340.587 157.819C340.929 157.868 341.289 157.935 341.667 158.02C342.046 158.106 342.394 158.246 342.711 158.441C343.028 158.624 343.291 158.875 343.498 159.192C343.718 159.509 343.827 159.924 343.827 160.437C343.827 161.376 343.461 162.102 342.729 162.615C342.009 163.127 341.045 163.384 339.837 163.384Z" fill="#A0A0A0"/> <path d="M346.95 153.719H348.415V155.256H348.488C349.098 154.085 350.068 153.499 351.399 153.499C352.558 153.499 353.461 153.932 354.108 154.799C354.767 155.665 355.096 156.879 355.096 158.441C355.096 160.003 354.767 161.218 354.108 162.084C353.461 162.95 352.558 163.384 351.399 163.384C350.068 163.384 349.098 162.798 348.488 161.626H348.415V166.825H346.95V153.719ZM350.831 162.084C351.685 162.084 352.344 161.828 352.808 161.315C353.284 160.791 353.522 160.101 353.522 159.247V157.636C353.522 156.782 353.284 156.098 352.808 155.586C352.344 155.061 351.685 154.799 350.831 154.799C350.502 154.799 350.19 154.841 349.898 154.927C349.605 155.012 349.348 155.14 349.129 155.311C348.909 155.47 348.732 155.671 348.598 155.915C348.476 156.147 348.415 156.422 348.415 156.739V160.144C348.415 160.461 348.476 160.742 348.598 160.986C348.732 161.218 348.909 161.419 349.129 161.59C349.348 161.748 349.605 161.87 349.898 161.956C350.19 162.041 350.502 162.084 350.831 162.084Z" fill="#A0A0A0"/> <path d="M357.652 161.919H360.947V150.863H357.652V149.618H362.411V161.919H365.706V163.164H357.652V161.919Z" fill="#A0A0A0"/> <path d="M376.224 163.164C375.65 163.164 375.242 163.018 374.998 162.725C374.753 162.432 374.601 162.066 374.54 161.626H374.448C374.241 162.176 373.905 162.609 373.442 162.926C372.99 163.231 372.38 163.384 371.611 163.384C370.623 163.384 369.836 163.127 369.25 162.615C368.664 162.102 368.371 161.401 368.371 160.51C368.371 159.631 368.688 158.954 369.323 158.478C369.97 158.002 371.007 157.764 372.435 157.764H374.448V156.831C374.448 156.135 374.253 155.616 373.863 155.275C373.472 154.921 372.917 154.744 372.197 154.744C371.562 154.744 371.044 154.872 370.641 155.128C370.238 155.372 369.915 155.708 369.671 156.135L368.682 155.403C368.804 155.159 368.969 154.921 369.177 154.689C369.384 154.457 369.64 154.256 369.945 154.085C370.25 153.902 370.598 153.761 370.989 153.664C371.379 153.554 371.812 153.499 372.288 153.499C373.399 153.499 374.278 153.78 374.924 154.341C375.583 154.902 375.913 155.683 375.913 156.684V161.883H377.231V163.164H376.224ZM371.867 162.157C372.246 162.157 372.587 162.115 372.892 162.029C373.21 161.932 373.484 161.809 373.716 161.663C373.948 161.504 374.125 161.321 374.247 161.114C374.381 160.894 374.448 160.662 374.448 160.418V158.862H372.435C371.556 158.862 370.916 158.984 370.513 159.228C370.11 159.473 369.909 159.826 369.909 160.29V160.675C369.909 161.163 370.08 161.535 370.421 161.791C370.775 162.035 371.257 162.157 371.867 162.157Z" fill="#A0A0A0"/> <path d="M386.687 153.719H388.152L383.466 165.232C383.356 165.501 383.234 165.733 383.099 165.928C382.965 166.136 382.807 166.3 382.624 166.422C382.44 166.557 382.221 166.654 381.965 166.715C381.708 166.788 381.403 166.825 381.049 166.825H379.658V165.58H381.855L382.916 162.981L379.109 153.719H380.61L382.203 157.673L383.612 161.26H383.685L385.095 157.673L386.687 153.719Z" fill="#A0A0A0"/> <path d="M127.209 161.919H130.504V150.863H127.209V149.618H131.968V161.919H135.263V163.164H127.209V161.919Z" fill="#282828"/> <path d="M142.377 163.384C141.693 163.384 141.077 163.268 140.528 163.036C139.991 162.804 139.527 162.475 139.137 162.047C138.758 161.608 138.465 161.089 138.258 160.492C138.051 159.881 137.947 159.204 137.947 158.46C137.947 157.703 138.051 157.02 138.258 156.41C138.478 155.799 138.777 155.281 139.155 154.854C139.533 154.414 139.985 154.079 140.509 153.847C141.046 153.615 141.638 153.499 142.285 153.499C142.92 153.499 143.493 153.615 144.006 153.847C144.53 154.079 144.976 154.402 145.342 154.817C145.708 155.22 145.989 155.702 146.184 156.263C146.379 156.824 146.477 157.441 146.477 158.112V158.807H139.484V159.247C139.484 159.662 139.552 160.046 139.686 160.4C139.82 160.754 140.009 161.059 140.253 161.315C140.509 161.571 140.815 161.773 141.168 161.919C141.535 162.054 141.937 162.121 142.377 162.121C143.011 162.121 143.56 161.974 144.024 161.681C144.488 161.388 144.842 160.986 145.086 160.473L146.166 161.205C145.885 161.84 145.415 162.365 144.756 162.78C144.109 163.182 143.316 163.384 142.377 163.384ZM142.285 154.707C141.882 154.707 141.51 154.78 141.168 154.927C140.827 155.073 140.528 155.275 140.272 155.531C140.027 155.787 139.832 156.092 139.686 156.446C139.552 156.788 139.484 157.166 139.484 157.581V157.709H144.903V157.508C144.903 157.093 144.836 156.715 144.701 156.373C144.579 156.031 144.402 155.738 144.17 155.494C143.951 155.238 143.676 155.043 143.347 154.909C143.029 154.774 142.676 154.707 142.285 154.707Z" fill="#282828"/> <path d="M153.645 163.164C152.925 163.164 152.394 162.963 152.053 162.56C151.723 162.157 151.558 161.639 151.558 161.004V154.963H148.41V153.719H150.753C151.07 153.719 151.29 153.658 151.412 153.536C151.546 153.401 151.613 153.176 151.613 152.858V150.387H153.023V153.719H157.325V154.963H153.023V161.919H157.325V163.164H153.645Z" fill="#282828"/> <path d="M87.4493 115.107C86.7659 115.107 86.1497 114.991 85.6005 114.76C85.0636 114.528 84.5999 114.198 84.2093 113.771C83.831 113.332 83.5382 112.813 83.3307 112.215C83.1233 111.605 83.0195 110.928 83.0195 110.183C83.0195 109.427 83.1233 108.743 83.3307 108.133C83.5504 107.523 83.8494 107.004 84.2277 106.577C84.606 106.138 85.0575 105.802 85.5822 105.57C86.1192 105.339 86.711 105.223 87.3578 105.223C87.9924 105.223 88.5659 105.339 89.0784 105.57C89.6032 105.802 90.0486 106.126 90.4147 106.541C90.7808 106.943 91.0615 107.425 91.2567 107.987C91.452 108.548 91.5496 109.164 91.5496 109.836V110.531H84.5571V110.97C84.5571 111.385 84.6243 111.77 84.7585 112.124C84.8927 112.478 85.0819 112.783 85.3259 113.039C85.5822 113.295 85.8873 113.496 86.2412 113.643C86.6073 113.777 87.01 113.844 87.4493 113.844C88.0839 113.844 88.633 113.698 89.0968 113.405C89.5605 113.112 89.9144 112.709 90.1584 112.197L91.2384 112.929C90.9578 113.564 90.4879 114.088 89.8289 114.503C89.1822 114.906 88.389 115.107 87.4493 115.107ZM87.3578 106.431C86.9551 106.431 86.5829 106.504 86.2412 106.65C85.8995 106.797 85.6005 106.998 85.3443 107.255C85.1002 107.511 84.9049 107.816 84.7585 108.17C84.6243 108.511 84.5571 108.89 84.5571 109.305V109.433H89.9754V109.231C89.9754 108.817 89.9083 108.438 89.774 108.097C89.652 107.755 89.4751 107.462 89.2432 107.218C89.0235 106.962 88.749 106.766 88.4195 106.632C88.1022 106.498 87.7483 106.431 87.3578 106.431Z" fill="#282828"/> <path d="M93.8855 114.888L97.4 110.092L93.977 105.442H95.7343L97.1621 107.438L98.297 109.012H98.3702L99.4685 107.438L100.878 105.442H102.562L99.1024 110.073L102.654 114.888H100.896L99.3037 112.673L98.2237 111.172H98.1505L97.1071 112.673L95.5695 114.888H93.8855Z" fill="#282828"/> <path d="M105.484 105.442H106.948V106.98H107.021C107.631 105.808 108.602 105.223 109.932 105.223C111.091 105.223 111.994 105.656 112.641 106.522C113.3 107.389 113.629 108.603 113.629 110.165C113.629 111.727 113.3 112.941 112.641 113.808C111.994 114.674 111.091 115.107 109.932 115.107C108.602 115.107 107.631 114.522 107.021 113.35H106.948V118.549H105.484V105.442ZM109.364 113.808C110.218 113.808 110.877 113.551 111.341 113.039C111.817 112.514 112.055 111.825 112.055 110.97V109.36C112.055 108.505 111.817 107.822 111.341 107.309C110.877 106.785 110.218 106.522 109.364 106.522C109.035 106.522 108.724 106.565 108.431 106.65C108.138 106.736 107.882 106.864 107.662 107.035C107.442 107.194 107.265 107.395 107.131 107.639C107.009 107.871 106.948 108.145 106.948 108.463V111.867C106.948 112.185 107.009 112.465 107.131 112.709C107.265 112.941 107.442 113.143 107.662 113.313C107.882 113.472 108.138 113.594 108.431 113.68C108.724 113.765 109.035 113.808 109.364 113.808Z" fill="#282828"/> <path d="M120.212 115.107C119.553 115.107 118.955 114.991 118.418 114.76C117.893 114.528 117.442 114.198 117.063 113.771C116.697 113.332 116.417 112.813 116.221 112.215C116.026 111.605 115.929 110.922 115.929 110.165C115.929 109.421 116.026 108.743 116.221 108.133C116.417 107.523 116.697 107.004 117.063 106.577C117.442 106.138 117.893 105.802 118.418 105.57C118.955 105.339 119.553 105.223 120.212 105.223C120.871 105.223 121.463 105.339 121.987 105.57C122.524 105.802 122.976 106.138 123.342 106.577C123.72 107.004 124.007 107.523 124.202 108.133C124.398 108.743 124.495 109.421 124.495 110.165C124.495 110.922 124.398 111.605 124.202 112.215C124.007 112.813 123.72 113.332 123.342 113.771C122.976 114.198 122.524 114.528 121.987 114.76C121.463 114.991 120.871 115.107 120.212 115.107ZM120.212 113.844C121.03 113.844 121.689 113.6 122.189 113.112C122.689 112.624 122.939 111.867 122.939 110.842V109.488C122.939 108.463 122.689 107.706 122.189 107.218C121.689 106.73 121.03 106.486 120.212 106.486C119.394 106.486 118.735 106.73 118.235 107.218C117.735 107.706 117.484 108.463 117.484 109.488V110.842C117.484 111.867 117.735 112.624 118.235 113.112C118.735 113.6 119.394 113.844 120.212 113.844Z" fill="#282828"/> <path d="M127.106 113.643H129.87V106.687H127.106V105.442H131.334V107.822H131.426C131.621 107.078 131.987 106.498 132.524 106.083C133.073 105.656 133.769 105.442 134.611 105.442H135.929V106.907H134.153C133.311 106.907 132.628 107.151 132.103 107.639C131.59 108.127 131.334 108.768 131.334 109.561V113.643H134.995V114.888H127.106V113.643Z" fill="#282828"/> <path d="M142.621 114.888C141.901 114.888 141.37 114.686 141.029 114.284C140.699 113.881 140.534 113.362 140.534 112.728V106.687H137.386V105.442H139.729C140.046 105.442 140.266 105.381 140.388 105.259C140.522 105.125 140.589 104.899 140.589 104.582V102.111H141.999V105.442H146.3V106.687H141.999V113.643H146.3V114.888H142.621Z" fill="#282828"/> <path d="M164.445 115.107C163.761 115.107 163.151 114.991 162.614 114.76C162.089 114.515 161.644 114.18 161.278 113.753C160.912 113.326 160.631 112.807 160.436 112.197C160.253 111.587 160.161 110.909 160.161 110.165C160.161 109.421 160.259 108.743 160.454 108.133C160.649 107.523 160.93 107.004 161.296 106.577C161.662 106.138 162.108 105.802 162.632 105.57C163.157 105.339 163.755 105.223 164.426 105.223C165.341 105.223 166.086 105.424 166.659 105.827C167.233 106.229 167.654 106.754 167.922 107.401L166.751 108.023C166.58 107.535 166.293 107.157 165.891 106.888C165.5 106.62 165.012 106.486 164.426 106.486C163.999 106.486 163.615 106.559 163.273 106.705C162.944 106.84 162.663 107.035 162.431 107.291C162.199 107.547 162.022 107.852 161.9 108.206C161.79 108.56 161.735 108.945 161.735 109.36V110.97C161.735 111.385 161.79 111.77 161.9 112.124C162.022 112.478 162.199 112.783 162.431 113.039C162.663 113.295 162.95 113.496 163.291 113.643C163.633 113.777 164.024 113.844 164.463 113.844C165.097 113.844 165.622 113.698 166.037 113.405C166.452 113.112 166.781 112.709 167.026 112.197L168.069 112.911C167.788 113.545 167.349 114.07 166.751 114.485C166.165 114.9 165.396 115.107 164.445 115.107Z" fill="#282828"/> <path d="M171.064 113.643H174.359V102.587H171.064V101.342H175.823V113.643H179.118V114.888H171.064V113.643Z" fill="#282828"/> <path d="M189.636 114.888C189.063 114.888 188.654 114.741 188.41 114.448C188.166 114.155 188.013 113.789 187.952 113.35H187.86C187.653 113.899 187.317 114.332 186.854 114.65C186.402 114.955 185.792 115.107 185.023 115.107C184.035 115.107 183.248 114.851 182.662 114.339C182.076 113.826 181.783 113.124 181.783 112.233C181.783 111.355 182.101 110.678 182.735 110.202C183.382 109.726 184.419 109.488 185.847 109.488H187.86V108.554C187.86 107.859 187.665 107.34 187.275 106.998C186.884 106.644 186.329 106.467 185.609 106.467C184.974 106.467 184.456 106.596 184.053 106.852C183.65 107.096 183.327 107.431 183.083 107.859L182.094 107.126C182.216 106.882 182.381 106.644 182.589 106.412C182.796 106.181 183.052 105.979 183.357 105.808C183.663 105.625 184.01 105.485 184.401 105.387C184.791 105.278 185.225 105.223 185.701 105.223C186.811 105.223 187.69 105.503 188.336 106.065C188.995 106.626 189.325 107.407 189.325 108.408V113.606H190.643V114.888H189.636ZM185.279 113.881C185.658 113.881 185.999 113.838 186.305 113.753C186.622 113.655 186.896 113.533 187.128 113.387C187.36 113.228 187.537 113.045 187.659 112.838C187.793 112.618 187.86 112.386 187.86 112.142V110.586H185.847C184.968 110.586 184.328 110.708 183.925 110.952C183.522 111.196 183.321 111.55 183.321 112.014V112.398C183.321 112.886 183.492 113.259 183.833 113.515C184.187 113.759 184.669 113.881 185.279 113.881Z" fill="#282828"/> <path d="M197.152 115.107C196.164 115.107 195.31 114.943 194.59 114.613C193.882 114.271 193.278 113.82 192.777 113.259L193.766 112.398C194.217 112.874 194.712 113.24 195.249 113.496C195.785 113.753 196.432 113.881 197.189 113.881C197.921 113.881 198.519 113.753 198.983 113.496C199.459 113.228 199.697 112.813 199.697 112.252C199.697 112.008 199.648 111.806 199.55 111.648C199.465 111.477 199.343 111.343 199.184 111.245C199.025 111.147 198.848 111.074 198.653 111.025C198.458 110.964 198.251 110.915 198.031 110.879L196.548 110.659C196.219 110.61 195.859 110.543 195.468 110.458C195.09 110.372 194.742 110.238 194.425 110.055C194.108 109.86 193.839 109.604 193.619 109.286C193.412 108.969 193.308 108.554 193.308 108.042C193.308 107.566 193.4 107.157 193.583 106.815C193.778 106.461 194.046 106.168 194.388 105.937C194.73 105.693 195.133 105.516 195.596 105.406C196.06 105.284 196.566 105.223 197.116 105.223C197.97 105.223 198.708 105.357 199.33 105.625C199.965 105.894 200.508 106.266 200.96 106.742L200.008 107.639C199.898 107.505 199.758 107.37 199.587 107.236C199.428 107.09 199.227 106.962 198.983 106.852C198.751 106.73 198.476 106.632 198.159 106.559C197.842 106.486 197.476 106.449 197.061 106.449C196.316 106.449 195.743 106.577 195.34 106.834C194.95 107.09 194.754 107.462 194.754 107.95C194.754 108.194 194.797 108.402 194.882 108.572C194.98 108.731 195.108 108.859 195.267 108.957C195.425 109.054 195.602 109.134 195.798 109.195C196.005 109.244 196.213 109.286 196.42 109.323L197.903 109.543C198.244 109.591 198.604 109.659 198.983 109.744C199.361 109.829 199.709 109.97 200.026 110.165C200.343 110.348 200.606 110.598 200.813 110.915C201.033 111.233 201.143 111.648 201.143 112.16C201.143 113.1 200.777 113.826 200.044 114.339C199.324 114.851 198.36 115.107 197.152 115.107Z" fill="#282828"/> <path d="M208.128 115.107C207.14 115.107 206.285 114.943 205.565 114.613C204.858 114.271 204.253 113.82 203.753 113.259L204.742 112.398C205.193 112.874 205.687 113.24 206.224 113.496C206.761 113.753 207.408 113.881 208.165 113.881C208.897 113.881 209.495 113.753 209.958 113.496C210.434 113.228 210.672 112.813 210.672 112.252C210.672 112.008 210.624 111.806 210.526 111.648C210.441 111.477 210.318 111.343 210.16 111.245C210.001 111.147 209.824 111.074 209.629 111.025C209.434 110.964 209.226 110.915 209.007 110.879L207.524 110.659C207.194 110.61 206.834 110.543 206.444 110.458C206.066 110.372 205.718 110.238 205.401 110.055C205.083 109.86 204.815 109.604 204.595 109.286C204.388 108.969 204.284 108.554 204.284 108.042C204.284 107.566 204.375 107.157 204.559 106.815C204.754 106.461 205.022 106.168 205.364 105.937C205.706 105.693 206.108 105.516 206.572 105.406C207.036 105.284 207.542 105.223 208.091 105.223C208.946 105.223 209.684 105.357 210.306 105.625C210.941 105.894 211.484 106.266 211.935 106.742L210.984 107.639C210.874 107.505 210.733 107.37 210.563 107.236C210.404 107.09 210.203 106.962 209.958 106.852C209.727 106.73 209.452 106.632 209.135 106.559C208.817 106.486 208.451 106.449 208.036 106.449C207.292 106.449 206.719 106.577 206.316 106.834C205.925 107.09 205.73 107.462 205.73 107.95C205.73 108.194 205.773 108.402 205.858 108.572C205.956 108.731 206.084 108.859 206.243 108.957C206.401 109.054 206.578 109.134 206.773 109.195C206.981 109.244 207.188 109.286 207.396 109.323L208.879 109.543C209.22 109.591 209.58 109.659 209.958 109.744C210.337 109.829 210.685 109.97 211.002 110.165C211.319 110.348 211.582 110.598 211.789 110.915C212.009 111.233 212.118 111.648 212.118 112.16C212.118 113.1 211.752 113.826 211.02 114.339C210.3 114.851 209.336 115.107 208.128 115.107Z" fill="#282828"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M196.715 108.618V78.6445C196.715 77.4107 195.708 76.4065 194.47 76.4065H100.018C98.7801 76.4065 97.7725 77.4107 97.7725 78.6445V137.416C97.7725 137.447 97.7729 137.479 97.7738 137.51V144.977H225.617V120.571H104.279V113.094C104.279 111.861 105.287 110.856 106.525 110.856H194.47C195.708 110.856 196.715 109.852 196.715 108.618Z" fill="#A0A0A0"/> <path d="M108.133 139.384C107.45 139.384 106.839 139.268 106.302 139.036C105.778 138.792 105.332 138.456 104.966 138.029C104.6 137.602 104.319 137.083 104.124 136.473C103.941 135.863 103.85 135.186 103.85 134.441C103.85 133.697 103.947 133.02 104.142 132.41C104.338 131.799 104.618 131.281 104.985 130.854C105.351 130.414 105.796 130.079 106.321 129.847C106.846 129.615 107.443 129.499 108.115 129.499C109.03 129.499 109.774 129.7 110.348 130.103C110.921 130.506 111.342 131.031 111.611 131.677L110.439 132.3C110.269 131.812 109.982 131.433 109.579 131.165C109.189 130.896 108.7 130.762 108.115 130.762C107.688 130.762 107.303 130.835 106.961 130.982C106.632 131.116 106.351 131.311 106.119 131.567C105.888 131.824 105.711 132.129 105.589 132.483C105.479 132.837 105.424 133.221 105.424 133.636V135.247C105.424 135.662 105.479 136.046 105.589 136.4C105.711 136.754 105.888 137.059 106.119 137.315C106.351 137.571 106.638 137.773 106.98 137.919C107.321 138.054 107.712 138.121 108.151 138.121C108.786 138.121 109.311 137.974 109.725 137.681C110.14 137.388 110.47 136.986 110.714 136.473L111.757 137.187C111.477 137.822 111.037 138.346 110.439 138.761C109.854 139.176 109.085 139.384 108.133 139.384Z" fill="#ECEDEE"/> <path d="M118.779 139.384C118.12 139.384 117.522 139.268 116.985 139.036C116.461 138.804 116.009 138.475 115.631 138.047C115.265 137.608 114.984 137.089 114.789 136.492C114.594 135.881 114.496 135.198 114.496 134.441C114.496 133.697 114.594 133.02 114.789 132.41C114.984 131.799 115.265 131.281 115.631 130.854C116.009 130.414 116.461 130.079 116.985 129.847C117.522 129.615 118.12 129.499 118.779 129.499C119.438 129.499 120.03 129.615 120.555 129.847C121.092 130.079 121.543 130.414 121.909 130.854C122.288 131.281 122.574 131.799 122.77 132.41C122.965 133.02 123.063 133.697 123.063 134.441C123.063 135.198 122.965 135.881 122.77 136.492C122.574 137.089 122.288 137.608 121.909 138.047C121.543 138.475 121.092 138.804 120.555 139.036C120.03 139.268 119.438 139.384 118.779 139.384ZM118.779 138.121C119.597 138.121 120.256 137.877 120.756 137.388C121.257 136.9 121.507 136.144 121.507 135.119V133.764C121.507 132.739 121.257 131.982 120.756 131.494C120.256 131.006 119.597 130.762 118.779 130.762C117.962 130.762 117.303 131.006 116.802 131.494C116.302 131.982 116.052 132.739 116.052 133.764V135.119C116.052 136.144 116.302 136.9 116.802 137.388C117.303 137.877 117.962 138.121 118.779 138.121Z" fill="#ECEDEE"/> <path d="M126.057 139.164V129.719H127.522V131.256H127.595C127.693 131.024 127.815 130.805 127.961 130.597C128.108 130.378 128.285 130.189 128.492 130.03C128.712 129.871 128.968 129.743 129.261 129.645C129.554 129.548 129.895 129.499 130.286 129.499C131.274 129.499 132.068 129.816 132.666 130.451C133.263 131.073 133.562 131.958 133.562 133.105V139.164H132.098V133.361C132.098 132.495 131.909 131.854 131.531 131.439C131.152 131.012 130.597 130.799 129.865 130.799C129.572 130.799 129.285 130.835 129.005 130.909C128.724 130.982 128.474 131.092 128.254 131.238C128.034 131.384 127.857 131.574 127.723 131.805C127.589 132.037 127.522 132.306 127.522 132.611V139.164H126.057Z" fill="#ECEDEE"/> <path d="M140.841 139.384C139.852 139.384 138.998 139.219 138.278 138.889C137.57 138.548 136.966 138.096 136.466 137.535L137.454 136.675C137.906 137.15 138.4 137.517 138.937 137.773C139.474 138.029 140.121 138.157 140.877 138.157C141.609 138.157 142.207 138.029 142.671 137.773C143.147 137.504 143.385 137.089 143.385 136.528C143.385 136.284 143.336 136.083 143.239 135.924C143.153 135.753 143.031 135.619 142.872 135.521C142.714 135.424 142.537 135.35 142.342 135.302C142.146 135.241 141.939 135.192 141.719 135.155L140.237 134.936C139.907 134.887 139.547 134.82 139.157 134.734C138.778 134.649 138.43 134.515 138.113 134.332C137.796 134.136 137.527 133.88 137.308 133.563C137.1 133.245 136.997 132.831 136.997 132.318C136.997 131.842 137.088 131.433 137.271 131.092C137.466 130.738 137.735 130.445 138.077 130.213C138.418 129.969 138.821 129.792 139.285 129.682C139.748 129.56 140.255 129.499 140.804 129.499C141.658 129.499 142.397 129.633 143.019 129.902C143.653 130.17 144.197 130.542 144.648 131.018L143.696 131.915C143.586 131.781 143.446 131.647 143.275 131.513C143.117 131.366 142.915 131.238 142.671 131.128C142.439 131.006 142.165 130.909 141.847 130.835C141.53 130.762 141.164 130.725 140.749 130.725C140.005 130.725 139.431 130.854 139.028 131.11C138.638 131.366 138.443 131.738 138.443 132.226C138.443 132.471 138.485 132.678 138.571 132.849C138.668 133.007 138.797 133.136 138.955 133.233C139.114 133.331 139.291 133.41 139.486 133.471C139.694 133.52 139.901 133.563 140.108 133.599L141.591 133.819C141.933 133.868 142.293 133.935 142.671 134.02C143.049 134.106 143.397 134.246 143.715 134.441C144.032 134.624 144.294 134.875 144.502 135.192C144.721 135.509 144.831 135.924 144.831 136.437C144.831 137.376 144.465 138.102 143.733 138.615C143.013 139.127 142.049 139.384 140.841 139.384Z" fill="#ECEDEE"/> <path d="M152.164 139.164C151.444 139.164 150.913 138.963 150.572 138.56C150.242 138.157 150.077 137.639 150.077 137.004V130.963H146.929V129.719H149.272C149.589 129.719 149.809 129.658 149.931 129.536C150.065 129.401 150.132 129.176 150.132 128.858V126.387H151.542V129.719H155.843V130.963H151.542V137.919H155.843V139.164H152.164Z" fill="#ECEDEE"/> <path d="M158.6 137.919H161.364V130.963H158.6V129.719H162.829V132.098H162.92C163.116 131.354 163.482 130.774 164.019 130.359C164.568 129.932 165.263 129.719 166.105 129.719H167.423V131.183H165.648C164.806 131.183 164.122 131.427 163.598 131.915C163.085 132.403 162.829 133.044 162.829 133.837V137.919H166.49V139.164H158.6V137.919Z" fill="#ECEDEE"/> <path d="M175.891 137.626H175.818C175.721 137.858 175.598 138.084 175.452 138.304C175.306 138.511 175.123 138.694 174.903 138.853C174.695 139.011 174.445 139.14 174.152 139.237C173.86 139.335 173.518 139.384 173.127 139.384C172.139 139.384 171.346 139.072 170.748 138.45C170.15 137.816 169.851 136.925 169.851 135.778V129.719H171.315V135.521C171.315 136.388 171.504 137.035 171.883 137.462C172.261 137.877 172.816 138.084 173.548 138.084C173.841 138.084 174.128 138.047 174.409 137.974C174.689 137.901 174.939 137.791 175.159 137.645C175.379 137.498 175.556 137.315 175.69 137.096C175.824 136.864 175.891 136.589 175.891 136.272V129.719H177.356V139.164H175.891V137.626Z" fill="#ECEDEE"/> <path d="M184.963 139.384C184.28 139.384 183.67 139.268 183.133 139.036C182.608 138.792 182.163 138.456 181.797 138.029C181.431 137.602 181.15 137.083 180.955 136.473C180.772 135.863 180.68 135.186 180.68 134.441C180.68 133.697 180.778 133.02 180.973 132.41C181.168 131.799 181.449 131.281 181.815 130.854C182.181 130.414 182.626 130.079 183.151 129.847C183.676 129.615 184.274 129.499 184.945 129.499C185.86 129.499 186.605 129.7 187.178 130.103C187.752 130.506 188.173 131.031 188.441 131.677L187.27 132.3C187.099 131.812 186.812 131.433 186.41 131.165C186.019 130.896 185.531 130.762 184.945 130.762C184.518 130.762 184.134 130.835 183.792 130.982C183.462 131.116 183.182 131.311 182.95 131.567C182.718 131.824 182.541 132.129 182.419 132.483C182.309 132.837 182.254 133.221 182.254 133.636V135.247C182.254 135.662 182.309 136.046 182.419 136.4C182.541 136.754 182.718 137.059 182.95 137.315C183.182 137.571 183.469 137.773 183.81 137.919C184.152 138.054 184.542 138.121 184.982 138.121C185.616 138.121 186.141 137.974 186.556 137.681C186.971 137.388 187.3 136.986 187.544 136.473L188.588 137.187C188.307 137.822 187.868 138.346 187.27 138.761C186.684 139.176 185.915 139.384 184.963 139.384Z" fill="#ECEDEE"/> <path d="M196.067 139.164C195.347 139.164 194.816 138.963 194.475 138.56C194.145 138.157 193.981 137.639 193.981 137.004V130.963H190.832V129.719H193.175C193.492 129.719 193.712 129.658 193.834 129.536C193.968 129.401 194.035 129.176 194.035 128.858V126.387H195.445V129.719H199.747V130.963H195.445V137.919H199.747V139.164H196.067Z" fill="#ECEDEE"/> <path d="M206.585 139.384C205.927 139.384 205.329 139.268 204.792 139.036C204.267 138.804 203.815 138.475 203.437 138.047C203.071 137.608 202.79 137.089 202.595 136.492C202.4 135.881 202.302 135.198 202.302 134.441C202.302 133.697 202.4 133.02 202.595 132.41C202.79 131.799 203.071 131.281 203.437 130.854C203.815 130.414 204.267 130.079 204.792 129.847C205.329 129.615 205.927 129.499 206.585 129.499C207.244 129.499 207.836 129.615 208.361 129.847C208.898 130.079 209.35 130.414 209.716 130.854C210.094 131.281 210.381 131.799 210.576 132.41C210.771 133.02 210.869 133.697 210.869 134.441C210.869 135.198 210.771 135.881 210.576 136.492C210.381 137.089 210.094 137.608 209.716 138.047C209.35 138.475 208.898 138.804 208.361 139.036C207.836 139.268 207.244 139.384 206.585 139.384ZM206.585 138.121C207.403 138.121 208.062 137.877 208.562 137.388C209.063 136.9 209.313 136.144 209.313 135.119V133.764C209.313 132.739 209.063 131.982 208.562 131.494C208.062 131.006 207.403 130.762 206.585 130.762C205.768 130.762 205.109 131.006 204.609 131.494C204.108 131.982 203.858 132.739 203.858 133.764V135.119C203.858 136.144 204.108 136.9 204.609 137.388C205.109 137.877 205.768 138.121 206.585 138.121Z" fill="#ECEDEE"/> <path d="M213.479 137.919H216.243V130.963H213.479V129.719H217.708V132.098H217.799C217.994 131.354 218.361 130.774 218.898 130.359C219.447 129.932 220.142 129.719 220.984 129.719H222.302V131.183H220.527C219.685 131.183 219.001 131.427 218.477 131.915C217.964 132.403 217.708 133.044 217.708 133.837V137.919H221.369V139.164H213.479V137.919Z" fill="#ECEDEE"/> <path d="M122.91 95.9458V89.628H124.458C126.076 89.628 127.415 90.6461 127.415 92.7939C127.415 94.9416 126.062 95.9458 124.444 95.9458H122.91ZM124.514 97.731C127.331 97.731 129.409 95.9179 129.409 92.7939C129.409 89.6698 127.345 87.8428 124.528 87.8428H120.985V97.731H124.514ZM130.519 95.8621C130.519 96.936 131.412 97.9262 132.876 97.9262C133.895 97.9262 134.55 97.452 134.899 96.9081C134.899 97.1731 134.927 97.5497 134.968 97.731H136.67C136.628 97.4939 136.586 97.0057 136.586 96.6431V93.2681C136.586 91.8873 135.777 90.66 133.602 90.66C131.761 90.66 130.771 91.8455 130.659 92.9194L132.305 93.2681C132.36 92.6683 132.807 92.1523 133.616 92.1523C134.397 92.1523 134.773 92.5568 134.773 93.0449C134.773 93.282 134.648 93.4773 134.257 93.533L132.57 93.7841C131.426 93.9514 130.519 94.6348 130.519 95.8621ZM133.267 96.5455C132.667 96.5455 132.374 96.155 132.374 95.7505C132.374 95.2206 132.751 94.9556 133.225 94.8859L134.773 94.6488V94.9556C134.773 96.1689 134.048 96.5455 133.267 96.5455ZM140.311 100.381V97.0615C140.646 97.5218 141.343 97.8983 142.291 97.8983C144.23 97.8983 145.527 96.3642 145.527 94.2862C145.527 92.25 144.369 90.7158 142.361 90.7158C141.329 90.7158 140.562 91.1761 140.255 91.706V90.8692H138.456V100.381H140.311ZM143.7 94.3001C143.7 95.5274 142.947 96.2387 141.998 96.2387C141.05 96.2387 140.283 95.5135 140.283 94.3001C140.283 93.0867 141.05 92.3755 141.998 92.3755C142.947 92.3755 143.7 93.0867 143.7 94.3001ZM148.85 93.7004C148.892 92.9473 149.352 92.3615 150.133 92.3615C151.026 92.3615 151.403 92.9612 151.403 93.7283V97.731H153.258V93.4075C153.258 91.9013 152.449 90.6879 150.705 90.6879C150.05 90.6879 149.297 90.9111 148.85 91.441V87.6336H146.996V97.731H148.85V93.7004ZM156.995 93.7841C156.995 92.9891 157.469 92.3615 158.278 92.3615C159.171 92.3615 159.547 92.9612 159.547 93.7283V97.731H161.402V93.4075C161.402 91.9013 160.621 90.6879 158.92 90.6879C158.18 90.6879 157.358 91.0087 156.939 91.72V90.8692H155.14V97.731H156.995V93.7841ZM164.638 93.5191C164.679 92.8915 165.209 92.1663 166.172 92.1663C167.232 92.1663 167.678 92.8357 167.706 93.5191H164.638ZM167.887 95.3043C167.664 95.9179 167.19 96.3502 166.325 96.3502C165.405 96.3502 164.638 95.6948 164.596 94.7882H169.505C169.505 94.7603 169.533 94.4814 169.533 94.2164C169.533 92.0129 168.264 90.66 166.144 90.66C164.386 90.66 162.769 92.0826 162.769 94.2722C162.769 96.5873 164.428 97.9402 166.311 97.9402C167.999 97.9402 169.086 96.9499 169.435 95.7645L167.887 95.3043Z" fill="#ECEDEE"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M289.694 84.2118V54.238C289.694 53.0042 288.686 52 287.448 52H216.241C215.003 52 213.995 53.0042 213.995 54.238V96.1641H213.994V120.571H377.866V96.1641H220.502V88.6878C220.502 87.4541 221.509 86.4498 222.747 86.4498H287.448C288.686 86.4498 289.694 85.4456 289.694 84.2118Z" fill="#3FCF8E"/> <path d="M223.497 102.387H227.066C228.628 102.387 229.794 102.924 230.562 103.998C231.331 105.072 231.716 106.664 231.716 108.776C231.716 110.887 231.331 112.479 230.562 113.553C229.794 114.627 228.628 115.164 227.066 115.164H223.497V102.387ZM226.993 113.828C228.018 113.828 228.787 113.474 229.299 112.766C229.824 112.058 230.087 111.058 230.087 109.764V107.787C230.087 106.494 229.824 105.493 229.299 104.785C228.787 104.077 228.018 103.724 226.993 103.724H225.034V113.828H226.993ZM238.811 103.632C238.384 103.632 238.085 103.547 237.914 103.376C237.743 103.193 237.658 102.967 237.658 102.698V102.406C237.658 102.137 237.743 101.917 237.914 101.747C238.085 101.564 238.384 101.472 238.811 101.472C239.238 101.472 239.537 101.564 239.708 101.747C239.879 101.917 239.964 102.137 239.964 102.406V102.698C239.964 102.967 239.879 103.193 239.708 103.376C239.537 103.547 239.238 103.632 238.811 103.632ZM234.674 113.919H238.079V106.963H234.674V105.719H239.543V113.919H242.728V115.164H234.674V113.919ZM249.311 115.384C248.322 115.384 247.468 115.219 246.748 114.889C246.04 114.548 245.436 114.096 244.936 113.535L245.924 112.675C246.376 113.151 246.87 113.517 247.407 113.773C247.944 114.029 248.591 114.157 249.347 114.157C250.079 114.157 250.677 114.029 251.141 113.773C251.617 113.504 251.855 113.09 251.855 112.528C251.855 112.284 251.806 112.083 251.709 111.924C251.623 111.753 251.501 111.619 251.343 111.521C251.184 111.424 251.007 111.351 250.812 111.302C250.616 111.241 250.409 111.192 250.189 111.155L248.707 110.936C248.377 110.887 248.017 110.82 247.627 110.734C247.248 110.649 246.901 110.515 246.583 110.332C246.266 110.136 245.997 109.88 245.778 109.563C245.57 109.245 245.467 108.831 245.467 108.318C245.467 107.842 245.558 107.433 245.741 107.092C245.936 106.738 246.205 106.445 246.547 106.213C246.888 105.969 247.291 105.792 247.755 105.682C248.218 105.56 248.725 105.499 249.274 105.499C250.128 105.499 250.867 105.633 251.489 105.902C252.124 106.17 252.667 106.542 253.118 107.018L252.166 107.915C252.056 107.781 251.916 107.647 251.745 107.513C251.587 107.366 251.385 107.238 251.141 107.128C250.909 107.006 250.635 106.909 250.317 106.835C250 106.762 249.634 106.726 249.219 106.726C248.475 106.726 247.901 106.854 247.498 107.11C247.108 107.366 246.913 107.738 246.913 108.227C246.913 108.471 246.955 108.678 247.041 108.849C247.138 109.008 247.267 109.136 247.425 109.233C247.584 109.331 247.761 109.41 247.956 109.471C248.164 109.52 248.371 109.563 248.578 109.599L250.061 109.819C250.403 109.868 250.763 109.935 251.141 110.02C251.519 110.106 251.867 110.246 252.185 110.441C252.502 110.624 252.764 110.875 252.972 111.192C253.191 111.509 253.301 111.924 253.301 112.437C253.301 113.376 252.935 114.102 252.203 114.615C251.483 115.127 250.519 115.384 249.311 115.384ZM256.424 105.719H257.889V107.256H257.962C258.572 106.085 259.542 105.499 260.872 105.499C262.032 105.499 262.935 105.932 263.581 106.799C264.24 107.665 264.57 108.879 264.57 110.441C264.57 112.003 264.24 113.218 263.581 114.084C262.935 114.951 262.032 115.384 260.872 115.384C259.542 115.384 258.572 114.798 257.962 113.626H257.889V118.825H256.424V105.719ZM260.305 114.084C261.159 114.084 261.818 113.828 262.282 113.315C262.758 112.791 262.996 112.101 262.996 111.247V109.636C262.996 108.782 262.758 108.098 262.282 107.586C261.818 107.061 261.159 106.799 260.305 106.799C259.975 106.799 259.664 106.841 259.371 106.927C259.078 107.012 258.822 107.14 258.602 107.311C258.383 107.47 258.206 107.671 258.072 107.915C257.95 108.147 257.889 108.422 257.889 108.739V112.144C257.889 112.461 257.95 112.742 258.072 112.986C258.206 113.218 258.383 113.419 258.602 113.59C258.822 113.748 259.078 113.871 259.371 113.956C259.664 114.041 259.975 114.084 260.305 114.084ZM267.125 113.919H270.42V102.863H267.125V101.618H271.885V113.919H275.179V115.164H267.125V113.919ZM285.698 115.164C285.124 115.164 284.715 115.018 284.471 114.725C284.227 114.432 284.075 114.066 284.014 113.626H283.922C283.715 114.176 283.379 114.609 282.915 114.926C282.464 115.231 281.854 115.384 281.085 115.384C280.096 115.384 279.309 115.127 278.723 114.615C278.138 114.102 277.845 113.401 277.845 112.51C277.845 111.631 278.162 110.954 278.797 110.478C279.443 110.002 280.481 109.764 281.909 109.764H283.922V108.831C283.922 108.135 283.727 107.616 283.336 107.275C282.946 106.921 282.391 106.744 281.671 106.744C281.036 106.744 280.517 106.872 280.115 107.128C279.712 107.372 279.389 107.708 279.144 108.135L278.156 107.403C278.278 107.159 278.443 106.921 278.65 106.689C278.858 106.457 279.114 106.256 279.419 106.085C279.724 105.902 280.072 105.761 280.462 105.664C280.853 105.554 281.286 105.499 281.762 105.499C282.873 105.499 283.751 105.78 284.398 106.341C285.057 106.902 285.386 107.683 285.386 108.684V113.883H286.704V115.164H285.698ZM281.341 114.157C281.719 114.157 282.061 114.115 282.366 114.029C282.683 113.932 282.958 113.81 283.19 113.663C283.422 113.504 283.599 113.321 283.721 113.114C283.855 112.894 283.922 112.662 283.922 112.418V110.862H281.909C281.03 110.862 280.389 110.984 279.987 111.229C279.584 111.473 279.382 111.826 279.382 112.29V112.675C279.382 113.163 279.553 113.535 279.895 113.791C280.249 114.035 280.731 114.157 281.341 114.157ZM296.161 105.719H297.625L292.939 117.233C292.829 117.501 292.707 117.733 292.573 117.928C292.439 118.136 292.28 118.3 292.097 118.422C291.914 118.557 291.694 118.654 291.438 118.715C291.182 118.788 290.877 118.825 290.523 118.825H289.132V117.58H291.328L292.39 114.981L288.583 105.719H290.084L291.676 109.673L293.086 113.26H293.159L294.568 109.673L296.161 105.719ZM301.59 102.387V110.057C301.59 110.679 301.609 111.235 301.645 111.723C301.682 112.211 301.779 112.632 301.938 112.986C302.097 113.327 302.341 113.59 302.67 113.773C303.012 113.956 303.482 114.047 304.08 114.047C304.678 114.047 305.141 113.956 305.471 113.773C305.813 113.59 306.063 113.327 306.221 112.986C306.38 112.632 306.478 112.211 306.514 111.723C306.551 111.235 306.569 110.679 306.569 110.057V102.387H308.107V109.691C308.107 110.643 308.058 111.473 307.96 112.18C307.875 112.888 307.686 113.48 307.393 113.956C307.112 114.432 306.703 114.792 306.167 115.036C305.642 115.268 304.946 115.384 304.08 115.384C303.213 115.384 302.512 115.268 301.975 115.036C301.45 114.792 301.041 114.432 300.748 113.956C300.468 113.48 300.278 112.888 300.181 112.18C300.095 111.473 300.053 110.643 300.053 109.691V102.387H301.59ZM311.303 105.719H312.767V107.256H312.841C313.451 106.085 314.421 105.499 315.751 105.499C316.91 105.499 317.813 105.932 318.46 106.799C319.119 107.665 319.449 108.879 319.449 110.441C319.449 112.003 319.119 113.218 318.46 114.084C317.813 114.951 316.91 115.384 315.751 115.384C314.421 115.384 313.451 114.798 312.841 113.626H312.767V118.825H311.303V105.719ZM315.184 114.084C316.038 114.084 316.697 113.828 317.161 113.315C317.637 112.791 317.874 112.101 317.874 111.247V109.636C317.874 108.782 317.637 108.098 317.161 107.586C316.697 107.061 316.038 106.799 315.184 106.799C314.854 106.799 314.543 106.841 314.25 106.927C313.957 107.012 313.701 107.14 313.481 107.311C313.262 107.47 313.085 107.671 312.95 107.915C312.828 108.147 312.767 108.422 312.767 108.739V112.144C312.767 112.461 312.828 112.742 312.95 112.986C313.085 113.218 313.262 113.419 313.481 113.59C313.701 113.748 313.957 113.871 314.25 113.956C314.543 114.041 314.854 114.084 315.184 114.084ZM328.319 113.626H328.246C327.636 114.798 326.666 115.384 325.336 115.384C324.176 115.384 323.267 114.951 322.608 114.084C321.962 113.218 321.638 112.003 321.638 110.441C321.638 108.879 321.962 107.665 322.608 106.799C323.267 105.932 324.176 105.499 325.336 105.499C326.666 105.499 327.636 106.085 328.246 107.256H328.319V101.618H329.784V115.164H328.319V113.626ZM325.903 114.084C326.233 114.084 326.544 114.041 326.837 113.956C327.13 113.871 327.386 113.748 327.606 113.59C327.825 113.419 327.996 113.218 328.118 112.986C328.252 112.742 328.319 112.461 328.319 112.144V108.739C328.319 108.422 328.252 108.147 328.118 107.915C327.996 107.671 327.825 107.47 327.606 107.311C327.386 107.14 327.13 107.012 326.837 106.927C326.544 106.841 326.233 106.799 325.903 106.799C325.049 106.799 324.384 107.061 323.908 107.586C323.444 108.098 323.212 108.782 323.212 109.636V111.247C323.212 112.101 323.444 112.791 323.908 113.315C324.384 113.828 325.049 114.084 325.903 114.084ZM340.577 115.164C340.003 115.164 339.594 115.018 339.35 114.725C339.106 114.432 338.954 114.066 338.892 113.626H338.801C338.594 114.176 338.258 114.609 337.794 114.926C337.343 115.231 336.733 115.384 335.964 115.384C334.975 115.384 334.188 115.127 333.602 114.615C333.017 114.102 332.724 113.401 332.724 112.51C332.724 111.631 333.041 110.954 333.676 110.478C334.322 110.002 335.36 109.764 336.787 109.764H338.801V108.831C338.801 108.135 338.606 107.616 338.215 107.275C337.825 106.921 337.269 106.744 336.549 106.744C335.915 106.744 335.396 106.872 334.994 107.128C334.591 107.372 334.267 107.708 334.023 108.135L333.035 107.403C333.157 107.159 333.322 106.921 333.529 106.689C333.737 106.457 333.993 106.256 334.298 106.085C334.603 105.902 334.951 105.761 335.341 105.664C335.732 105.554 336.165 105.499 336.641 105.499C337.751 105.499 338.63 105.78 339.277 106.341C339.936 106.902 340.265 107.683 340.265 108.684V113.883H341.583V115.164H340.577ZM336.22 114.157C336.598 114.157 336.94 114.115 337.245 114.029C337.562 113.932 337.837 113.81 338.069 113.663C338.301 113.504 338.478 113.321 338.6 113.114C338.734 112.894 338.801 112.662 338.801 112.418V110.862H336.787C335.909 110.862 335.268 110.984 334.865 111.229C334.463 111.473 334.261 111.826 334.261 112.29V112.675C334.261 113.163 334.432 113.535 334.774 113.791C335.128 114.035 335.61 114.157 336.22 114.157ZM348.44 115.164C347.721 115.164 347.19 114.963 346.848 114.56C346.518 114.157 346.354 113.639 346.354 113.004V106.963H343.205V105.719H345.548C345.866 105.719 346.085 105.658 346.207 105.536C346.342 105.401 346.409 105.176 346.409 104.858V102.387H347.818V105.719H352.12V106.963H347.818V113.919H352.12V115.164H348.44ZM359.123 115.384C358.44 115.384 357.824 115.268 357.275 115.036C356.738 114.804 356.274 114.475 355.883 114.047C355.505 113.608 355.212 113.09 355.005 112.492C354.797 111.881 354.694 111.204 354.694 110.46C354.694 109.703 354.797 109.02 355.005 108.41C355.224 107.799 355.523 107.281 355.902 106.854C356.28 106.414 356.732 106.079 357.256 105.847C357.793 105.615 358.385 105.499 359.032 105.499C359.666 105.499 360.24 105.615 360.753 105.847C361.277 106.079 361.723 106.402 362.089 106.817C362.455 107.22 362.736 107.702 362.931 108.263C363.126 108.824 363.224 109.441 363.224 110.112V110.807H356.231V111.247C356.231 111.662 356.298 112.046 356.433 112.4C356.567 112.754 356.756 113.059 357 113.315C357.256 113.572 357.561 113.773 357.915 113.919C358.281 114.054 358.684 114.121 359.123 114.121C359.758 114.121 360.307 113.974 360.771 113.681C361.235 113.388 361.588 112.986 361.833 112.473L362.913 113.205C362.632 113.84 362.162 114.365 361.503 114.78C360.856 115.182 360.063 115.384 359.123 115.384ZM359.032 106.707C358.629 106.707 358.257 106.78 357.915 106.927C357.574 107.073 357.275 107.275 357.018 107.531C356.774 107.787 356.579 108.092 356.433 108.446C356.298 108.788 356.231 109.166 356.231 109.581V109.709H361.649V109.508C361.649 109.093 361.582 108.715 361.448 108.373C361.326 108.031 361.149 107.738 360.917 107.494C360.698 107.238 360.423 107.043 360.094 106.909C359.776 106.774 359.422 106.707 359.032 106.707Z" fill="#ECEDEE"/> <path d="M236.688 74.5833H238.836L236.716 70.5387C238.013 70.1622 238.822 69.1162 238.822 67.7355C238.822 66.0201 237.594 64.6951 235.67 64.6951H231.806V74.5833H233.745V70.7758H234.749L236.688 74.5833ZM233.745 69.1162V66.3687H235.307C236.283 66.3687 236.855 66.9126 236.855 67.7494C236.855 68.5583 236.283 69.1162 235.307 69.1162H233.745ZM243.275 73.1049C242.369 73.1049 241.532 72.4355 241.532 71.1524C241.532 69.8554 242.369 69.1999 243.275 69.1999C244.182 69.1999 245.018 69.8554 245.018 71.1524C245.018 72.4494 244.182 73.1049 243.275 73.1049ZM243.275 67.5123C241.225 67.5123 239.677 69.0325 239.677 71.1524C239.677 73.2583 241.225 74.7925 243.275 74.7925C245.325 74.7925 246.873 73.2583 246.873 71.1524C246.873 69.0325 245.325 67.5123 243.275 67.5123ZM250.137 74.5833V73.7465C250.499 74.3322 251.224 74.7506 252.173 74.7506C254.125 74.7506 255.408 73.2025 255.408 71.1245C255.408 69.0883 254.251 67.5402 252.243 67.5402C251.224 67.5402 250.471 67.9865 250.164 68.4746V64.4859H248.337V74.5833H250.137ZM253.554 71.1384C253.554 72.3936 252.8 73.091 251.852 73.091C250.918 73.091 250.137 72.3797 250.137 71.1384C250.137 69.8833 250.918 69.1999 251.852 69.1999C252.8 69.1999 253.554 69.8833 253.554 71.1384ZM258.23 70.3714C258.272 69.7438 258.802 69.0186 259.764 69.0186C260.824 69.0186 261.27 69.688 261.298 70.3714H258.23ZM261.479 72.1565C261.256 72.7702 260.782 73.2025 259.917 73.2025C258.997 73.2025 258.23 72.5471 258.188 71.6405H263.097C263.097 71.6126 263.125 71.3337 263.125 71.0687C263.125 68.8652 261.856 67.5123 259.736 67.5123C257.979 67.5123 256.361 68.9349 256.361 71.1245C256.361 73.4396 258.021 74.7925 259.903 74.7925C261.591 74.7925 262.679 73.8022 263.027 72.6168L261.479 72.1565ZM268.77 67.6936C268.63 67.6797 268.491 67.6657 268.337 67.6657C267.752 67.6657 266.803 67.8331 266.385 68.7396V67.7215H264.586V74.5833H266.441V71.4453C266.441 69.9669 267.264 69.5067 268.212 69.5067C268.379 69.5067 268.561 69.5206 268.77 69.5625V67.6936ZM272.634 65.6714H270.961V66.6337C270.961 67.2474 270.626 67.7215 269.901 67.7215H269.552V69.3672H270.793V72.561C270.793 73.8859 271.63 74.6809 272.969 74.6809C273.513 74.6809 273.848 74.5833 274.015 74.5135V72.9794C273.917 73.0073 273.666 73.0352 273.443 73.0352C272.913 73.0352 272.634 72.8399 272.634 72.2402V69.3672H274.015V67.7215H272.634V65.6714Z" fill="#ECEDEE"/> </g> <defs> <clipPath id="clip0_1119_17619"> <rect width="360" height="210" fill="white" transform="translate(0.5)"/> </clipPath> </defs> </svg>
apps/www/public/images/realtime/example-apps/dark/code-editor.svg
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0007593571790494025, 0.00034300991683267057, 0.00016409279487561435, 0.00018979232117999345, 0.00023927417350932956 ]
{ "id": 10, "code_window": [ " }\n", "\n", " const content = (\n", " <div\n", " className={`\n", " overflow-hidden rounded-md border\n", " border-panel-border-light shadow-sm\n", " dark:border-panel-border-dark ${props.noMargin ? '' : 'mb-8'} ${props.className}`}\n", " >\n", " {props.title && (\n", " <div className={headerClasses.join(' ')}>\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ], "after_edit": [ " ${props.noHideOverflow ? '' : 'overflow-hidden'} rounded-md border\n" ], "file_path": "studio/components/ui/Panel.tsx", "type": "replace", "edit_start_line_idx": 33 }
import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query' import { get } from 'lib/common/fetch' import { API_ADMIN_URL } from 'lib/constants' import { useCallback } from 'react' import { customDomainKeys } from './keys' export type CustomDomainsVariables = { projectRef?: string } type CustomDomainStatus = | '0_not_allowed' | '0_no_hostname_configured' | '1_not_started' | '2_initiated' | '3_challenge_verified' | '4_origin_setup_completed' | '5_services_reconfigured' type Settings = { http2: string tls_1_3: string min_tls_version: string } type Ssl = { id: string type: string method: string status: string txt_name?: string txt_value?: string settings: Settings wildcard: boolean bundle_method: string certificate_authority: string validation_records?: { status: string txt_name: string txt_value: string }[] validation_errors?: { message: string }[] } type OwnershipVerification = { name: string type: string value: string } type OwnershipVerificationHttp = { http_url: string http_body: string } export type CustomDomainResponse = { id: string ssl: Ssl status: string hostname: string created_at: string custom_metadata: any verification_errors?: string[] custom_origin_server: string ownership_verification?: OwnershipVerification ownership_verification_http?: OwnershipVerificationHttp } export async function getCustomDomains( { projectRef }: CustomDomainsVariables, signal?: AbortSignal ) { if (!projectRef) { throw new Error('projectRef is required') } const response = (await get(`${API_ADMIN_URL}/projects/${projectRef}/custom-hostname`, { signal, })) as { data: { errors: any[] result: CustomDomainResponse success: boolean messages: any[] } status: CustomDomainStatus error: unknown } if (response.error) { // not allowed error and no hostname configured error are // valid steps in the process of setting up a custom domain // so we convert them to data instead of errors const isNotAllowedError = (response.error as any)?.code === 400 && (response.error as any)?.message?.includes('not allowed to set up custom domain') if (isNotAllowedError) { return { customDomain: null, status: '0_not_allowed', } as const } const isNoHostnameConfiguredError = (response.error as any)?.code === 400 && (response.error as any)?.message?.includes('custom hostname configuration') if (isNoHostnameConfiguredError) { return { customDomain: null, status: '0_no_hostname_configured', } as const } throw response.error } return { customDomain: response?.data?.result, status: response.status } } export type CustomDomainsData = Awaited<ReturnType<typeof getCustomDomains>> export type CustomDomainsError = unknown export const useCustomDomainsQuery = <TData = CustomDomainsData>( { projectRef }: CustomDomainsVariables, { enabled = true, ...options }: UseQueryOptions<CustomDomainsData, CustomDomainsError, TData> = {} ) => useQuery<CustomDomainsData, CustomDomainsError, TData>( customDomainKeys.list(projectRef), ({ signal }) => getCustomDomains({ projectRef }, signal), { enabled: enabled && typeof projectRef !== 'undefined', ...options } ) export const useCustomDomainsPrefetch = ({ projectRef }: CustomDomainsVariables) => { const client = useQueryClient() return useCallback(() => { if (projectRef) { client.prefetchQuery(customDomainKeys.list(projectRef), ({ signal }) => getCustomDomains({ projectRef }, signal) ) } }, [projectRef]) }
studio/data/custom-domains/custom-domains-query.ts
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0001777383586158976, 0.00017108858446590602, 0.00016069132834672928, 0.0001723107707221061, 0.000004109092515136581 ]
{ "id": 10, "code_window": [ " }\n", "\n", " const content = (\n", " <div\n", " className={`\n", " overflow-hidden rounded-md border\n", " border-panel-border-light shadow-sm\n", " dark:border-panel-border-dark ${props.noMargin ? '' : 'mb-8'} ${props.className}`}\n", " >\n", " {props.title && (\n", " <div className={headerClasses.join(' ')}>\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ], "after_edit": [ " ${props.noHideOverflow ? '' : 'overflow-hidden'} rounded-md border\n" ], "file_path": "studio/components/ui/Panel.tsx", "type": "replace", "edit_start_line_idx": 33 }
import Link from 'next/link' import { IconArrowLeft, IconArrowRight } from 'ui' const Pagination = ({ currentPage, totalCount }: { currentPage: number; totalCount: number }) => { // TODO: not sure if this is the most efficient way to do this. may need to refactor. const totalArray = Array.from({ length: totalCount }, (_, i: number) => i + 1) const pages = totalArray.filter((page: number) => { return page >= currentPage - 2 && page <= currentPage + 2 }) return ( <ul className="flex justify-center space-x-1 text-xs font-medium"> <li> <Link href={`/discussions?page=${currentPage - 1}`}> <a className="border-scale-600 bg-scale-300 inline-flex h-8 w-8 items-center justify-center rounded border"> <IconArrowLeft className="stroke-2 transition group-hover:-translate-x-1" height={12.5} /> </a> </Link> </li> {pages.map((page: number, i: number) => { i = i + 1 return ( <li key={i}> <Link href={`/discussions?page=${page}`}> <a className={`border-scale-600 inline-flex h-8 w-8 items-center justify-center rounded border ${ currentPage === page ? 'bg-brand-900' : 'bg-scale-300' }`} > {page} </a> </Link> </li> ) })} <li> <Link href={`/discussions?page=${currentPage + 1}`}> <a className="border-scale-600 bg-scale-300 inline-flex h-8 w-8 items-center justify-center rounded border"> <IconArrowRight className="stroke-2 transition group-hover:-translate-x-1" height={12.5} /> </a> </Link> </li> </ul> ) } export default Pagination
apps/docs/components/Pagination.tsx
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0003508193476591259, 0.0002187789068557322, 0.00016749741917010397, 0.00017157784895971417, 0.00007137448847061023 ]
{ "id": 11, "code_window": [ "test('refresh button', async () => {\n", " render(<ApiReport />)\n", " await waitFor(() => expect(get).toBeCalled())\n", " get.mockReset()\n", " userEvent.click(await screen.findByText(/Refresh/))\n", " await waitFor(() => expect(get).toBeCalled())\n", "})" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " expect(screen.findByText(/Refreshing/)).resolves.toThrow()\n" ], "file_path": "studio/tests/pages/projects/reports/api-report.test.js", "type": "add", "edit_start_line_idx": 24 }
import { DATETIME_FORMAT } from 'components/interfaces/Reports/Reports.constants' import dayjs from 'dayjs' import React, { useMemo } from 'react' import { ResponsiveContainer } from 'recharts' import { DateTimeFormats } from './Charts.constants' import { CommonChartProps, StackedChartProps } from './Charts.types' import utc from 'dayjs/plugin/utc' dayjs.extend(utc) /** * Auto formats a number to a default precision if it is a float * * @example * numberFormatter(123) // "123" * numberFormatter(123.123) // "123.12" * numberFormatter(123, 2) // "123.00" */ export const numberFormatter = (num: number, precision = 2) => isFloat(num) ? precisionFormatter(num, precision) : String(num) /** * Tests if a number is a float. * * @example * isFloat(123) // false * isFloat(123.123) // true */ export const isFloat = (num: number) => String(num).includes('.') /** * Formats a number to a particular precision. * * @example * precisionFormatter(123, 2) // "123.00" * precisionFormatter(123.123, 2) // "123.12" */ export const precisionFormatter = (num: number, precision: number): string => { if (isFloat(num)) { const [head, tail] = String(num).split('.') return head + '.' + tail.slice(0, precision) } else { // pad int with 0 return String(num) + '.' + '0'.repeat(precision) } } /** * Formats a timestamp. * Optionally formats the string to UTC * @param value * @param format * @param utc * @returns */ export const timestampFormatter = ( value: string, format: string = DateTimeFormats.FULL, utc: boolean = false ) => { if (utc) { return dayjs.utc(value).format(format) } return dayjs(value).format(format) } /** * Hook to create common wrapping components, perform data transformations * returns a Container component and the minHeight set */ export const useChartSize = ( size: CommonChartProps<any>['size'] = 'normal', sizeMap: { small: number normal: number large: number } = { small: 120, normal: 160, large: 280 } ) => { const minHeight = sizeMap[size] const Container: React.FC = useMemo( () => ({ children }) => ( <ResponsiveContainer height={minHeight} minHeight={minHeight} width="100%"> {children as JSX.Element} </ResponsiveContainer> ), [size] ) return { Container, minHeight, } } /** * Transforms data points into a stacked data structure that can be consumed by recharts */ export const useStacked = ({ data, xAxisKey, yAxisKey, stackKey, variant = 'values', }: Pick<StackedChartProps<any>, 'xAxisKey' | 'yAxisKey' | 'stackKey'> & { variant?: 'values' | 'percentages' } & Pick<CommonChartProps<Record<string, number>>, 'data'>) => { const stackedData = useMemo(() => { if (!data) return [] const mapping = data.reduce((acc, datum) => { const x = datum[xAxisKey] const y = datum[yAxisKey] const s = datum[stackKey] if (!acc[x]) { acc[x] = {} } acc[x][s] = y return acc }, {} as Record<string, Record<string, number>>) const flattened = Object.entries(mapping).map(([x, sMap]) => ({ ...sMap, [xAxisKey]: Number.isNaN(Number(x)) ? x : Number(x), })) return flattened }, [JSON.stringify(data)]) const dataKeys = useMemo(() => { return Object.keys(stackedData[0] || {}) .filter((k) => k !== xAxisKey && k !== yAxisKey) .sort() }, [JSON.stringify(stackedData[0] || {})]) const percentagesStackedData = useMemo(() => { if (variant !== 'percentages') return return stackedData.map((stack) => { const entries = Object.entries(stack) as Array<[string, number]> let map const sum = entries .filter(([key, _value]) => dataKeys.includes(key)) .reduce((acc, [_key, value]) => acc + value, 0) map = entries.reduce((acc, [key, value]) => { if (!dataKeys.includes(key)) { return { ...acc, [key]: value } } return { ...acc, [key]: value !== 0 ? value / sum : 0 } }, {} as any) return map }) }, [JSON.stringify(stackedData)]) return { dataKeys, stackedData, percentagesStackedData } }
studio/components/ui/Charts/Charts.utils.tsx
1
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.00017864309484139085, 0.00017498829402029514, 0.0001682276197243482, 0.0001757020509103313, 0.0000030542341846739873 ]
{ "id": 11, "code_window": [ "test('refresh button', async () => {\n", " render(<ApiReport />)\n", " await waitFor(() => expect(get).toBeCalled())\n", " get.mockReset()\n", " userEvent.click(await screen.findByText(/Refresh/))\n", " await waitFor(() => expect(get).toBeCalled())\n", "})" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", "keep" ], "after_edit": [ " expect(screen.findByText(/Refreshing/)).resolves.toThrow()\n" ], "file_path": "studio/tests/pages/projects/reports/api-report.test.js", "type": "add", "edit_start_line_idx": 24 }
import Loading from './Loading' export default Loading
studio/components/ui/Loading/index.ts
0
https://github.com/supabase/supabase/commit/cea06f9ad73769533866782557bf9840dcf10123
[ 0.0001781610189937055, 0.0001781610189937055, 0.0001781610189937055, 0.0001781610189937055, 0 ]