Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
46d9940
bump mermaid to 11.12.1
antoinell Nov 4, 2025
737c873
change initialize method call in order not to call the deprecated API
antoinell Nov 4, 2025
2bdc3dd
bumping vite and node too
antoinell Nov 5, 2025
38153c3
updating other plugins related to vite
antoinell Nov 5, 2025
ab0a76e
further changes
antoinell Nov 6, 2025
4927b6c
changing configuration to make it more plain vanilla
antoinell Nov 7, 2025
f08e88f
trying to improve
antoinell Nov 7, 2025
946dec1
removing jsx pragma
antoinell Nov 19, 2025
8734f66
Merge branch 'master' into bump-mermaid
antoinell Nov 19, 2025
ae5a5a9
rolling back to react 17
antoinell Nov 19, 2025
5178dd2
changes to deploy more javascript files
antoinell Nov 20, 2025
6efab3d
fixed error the javascript files generated by vite should be loaded a…
antoinell Nov 22, 2025
b1f41ba
readding the license headers.
antoinell Nov 22, 2025
e7c1e71
restoring SearchBox and SearchToc
antoinell Nov 23, 2025
1ffe26d
restoring SearchTocItem
antoinell Nov 23, 2025
b5e0379
trying to get npm run dev to work, not there yet
antoinell Nov 23, 2025
657b558
changing the eslint code
antoinell Nov 23, 2025
50adc71
executing npx eslint . --fix
antoinell Nov 23, 2025
045bb0e
changing code related to loading the index so that we do not load the…
antoinell Nov 23, 2025
c58f45d
rolling back to mermaid 8.9.2
antoinell Nov 23, 2025
8f1a7a4
rolling back to mermaid 8.9.2
antoinell Nov 23, 2025
da271d3
making sure that `npm run dev` makes vite display the port number
antoinell Nov 23, 2025
2bd20fa
removing file indexCreation.js since we are not using it anymore.
antoinell Nov 24, 2025
8124f25
Merge branch 'master' into bump-vite
antoinell Dec 3, 2025
4fcaad3
Merge branch 'master' into bump-vite
antoinell Dec 6, 2025
b23bdc7
Add a line ` * Copyright 2025 znai maintainers` before the existing T…
antoinell Dec 6, 2025
d27e51e
Remove mutation observer.
antoinell Dec 7, 2025
f37ec69
Remove main.js
antoinell Dec 7, 2025
e02e956
use import type in CliCommand.tsx.
antoinell Dec 7, 2025
14ede3b
removing // @ts-ignore
antoinell Dec 7, 2025
2de9fba
remove @ts-ignore annotation
antoinell Dec 7, 2025
065815c
remove @ts-ignore annotation
antoinell Dec 7, 2025
040d099
Merge branch 'master' into bump-vite
antoinell Dec 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@
</execution>
</executions>
<configuration>
<nodeVersion>v18.6.0</nodeVersion>
<nodeVersion>v22.21.1</nodeVersion>
<installDirectory>${frontend-maven-plugin.installDirectory}</installDirectory>
<workingDirectory>src</workingDirectory>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public List<List<String>> toListOfLists() {
}

public String buildIndexScript() {
return "window.znaiSearchData = " + JsonUtils.serialize(toListOfLists()) + "\n" +
ResourceUtils.textContent("flexsearchjs/indexCreation.js");
return "window.znaiSearchData = " + JsonUtils.serialize(toListOfLists()) + "\n";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where did you move indexCreation.js?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is replaced by another file called initialization.js in another package.

}
}
16 changes: 8 additions & 8 deletions znai-docs/znai/snippets/code-snippets.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ Note: this method doesn't highlight code.
You can also specify a language to enable syntax highlighting for your snippet.

```javascript
import React, {Component} from 'react'
import React from 'react'

class MyComponent extends Component {
class MyComponent extends React.Component {
render() {
/// ...
}
}
```

```javascript
import React, {Component} from 'react'
import React from 'react'

class MyComponent extends Component {
class MyComponent extends React.Component {
render() {
/// ...
}
Expand Down Expand Up @@ -61,9 +61,9 @@ Use the `title` property to specify a title.
```

```javascript {title: "ReactJS Component"}
import React, {Component} from 'react'
import React from 'react'

class MyComponent extends Component {
class MyComponent extends React.Component {
render() {
/// ...
}
Expand All @@ -82,9 +82,9 @@ Use `anchorId` to override auto generated identifier.
```
`````
```javascript {title: "ReactJS Component", anchorId: "my-special-code"}
import React, {Component} from 'react'
import React from 'react'

class MyComponent extends Component {
class MyComponent extends React.Component {
render() {
/// ...
}
Expand Down
11 changes: 0 additions & 11 deletions znai-reactjs/.eslintrc

This file was deleted.

73 changes: 73 additions & 0 deletions znai-reactjs/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
import js from '@eslint/js';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this file required for Vite migration?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new eslint consumes this file

import globals from 'globals';
import react from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import reactRefresh from 'eslint-plugin-react-refresh';
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import parser from '@typescript-eslint/parser';

export default [
// Ignore patterns
{
ignores: ['dist', 'build', 'node_modules', '*.config.js'],
},

// Base JavaScript configuration
{
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
languageOptions: {
parser: parser,
ecmaVersion: 2020,
globals: {
...globals.browser,
...globals.es2020,
},
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: { jsx: true },
sourceType: 'module',
},
},
settings: {
react: {
version: 'detect',
},
},
plugins: {
react,
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
'@typescript-eslint': typescriptEslint,
},
rules: {
// ESLint recommended rules
'@typescript-eslint/consistent-type-imports': [
'error',
{
prefer: 'type-imports',
fixStyle: 'separate-type-imports',
},
],
...js.configs.recommended.rules,

// React rules
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
'react/jsx-no-target-blank': 'off',
'react/prop-types': 'off', // Turn off if using TypeScript

// React Hooks rules
...reactHooks.configs.recommended.rules,

// React Refresh
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],

// Custom rules
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'no-console': ['warn', { allow: ['warn', 'error'] }],
},
},
];
Loading