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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions remotestate-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ If you are developing a production application, we recommend updating the config

```js
export default defineConfig([
globalIgnores(['dist']),
globalIgnores(["dist"]),
{
files: ['**/*.{ts,tsx}'],
files: ["**/*.{ts,tsx}"],
extends: [
// Other configs...

Expand All @@ -34,40 +34,40 @@ export default defineConfig([
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
]);
```

You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:

```js
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
import reactX from "eslint-plugin-react-x";
import reactDom from "eslint-plugin-react-dom";

export default defineConfig([
globalIgnores(['dist']),
globalIgnores(["dist"]),
{
files: ['**/*.{ts,tsx}'],
files: ["**/*.{ts,tsx}"],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
reactX.configs["recommended-typescript"],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
]);
```
18 changes: 9 additions & 9 deletions remotestate-demo/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'
import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";
import { defineConfig, globalIgnores } from "eslint/config";

export default defineConfig([
globalIgnores(['dist']),
globalIgnores(["dist"]),
{
files: ['**/*.{ts,tsx}'],
files: ["**/*.{ts,tsx}"],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
Expand All @@ -19,4 +19,4 @@ export default defineConfig([
globals: globals.browser,
},
},
])
]);
20 changes: 1 addition & 19 deletions remotestate-demo/package-lock.json

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

2 changes: 1 addition & 1 deletion remotestate-demo/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@

&::before,
&::after {
content: '';
content: "";
position: absolute;
top: -4.5px;
border: 5px solid transparent;
Expand Down
4 changes: 2 additions & 2 deletions remotestate-demo/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
--shadow:
rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;

--sans: system-ui, 'Segoe UI', Roboto, sans-serif;
--heading: system-ui, 'Segoe UI', Roboto, sans-serif;
--sans: system-ui, "Segoe UI", Roboto, sans-serif;
--heading: system-ui, "Segoe UI", Roboto, sans-serif;
--mono: ui-monospace, Consolas, monospace;

font: 18px/145% var(--sans);
Expand Down
10 changes: 5 additions & 5 deletions remotestate-demo/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

// https://vite.dev/config/
export default defineConfig({
Expand All @@ -8,6 +8,6 @@ export default defineConfig({
// linked via `file:` paths (which create symlinks with separate node_modules).
// Can be removed once all dependencies are installed from npm.
resolve: {
dedupe: ['react', 'react-dom']
}
})
dedupe: ["react", "react-dom"],
},
});
3 changes: 3 additions & 0 deletions remotestate-py/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
`[0].label` or `["display name"].value`.
- Updated JSONPath conversion helpers so `""` maps to `$` and `[0]` maps to
`$[0]`.
- Added public `PathInput` and `PathSegmentInput` aliases plus
`normalize_path()` and `normalize_path_segment()` helpers under
`remotestate.path`.


## Version 0.2.0
Expand Down
6 changes: 5 additions & 1 deletion remotestate-py/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ print("UI Base URL: ", result.ui_base_url)
advanced integrations:

- `Path`
- `PathSegment`
- `PathInput`
- `PathSegmentInput`
- `Property`
- `Index`

Expand All @@ -214,7 +217,8 @@ subset without the `"$."` prefix:
| `$.user` | no | `"$."` prefix is not part of the syntax |
| `items[01]` | no | indices are canonical integers without leading zeroes |

Use `parse_path()` and `format_path()` when you need to inspect, validate, or construct paths.
Use `normalize_path()` when accepting raw path inputs, and use `parse_path()` and
`format_path()` when you need to inspect, validate, or construct string paths.

## More Docs

Expand Down
2 changes: 1 addition & 1 deletion remotestate-py/src/remotestate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from importlib.metadata import version

from . import path
from .service import Service, action, query
from .serve import ServeResult, serve
from .service import Service, action, query
from .store import Store

__version__ = version("remotestate")
Expand Down
2 changes: 1 addition & 1 deletion remotestate-py/src/remotestate/log.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Final
import logging
from typing import Final

LOG: Final = logging.getLogger("remotestate")
Loading