mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-30 12:07:46 +00:00
feat: release 1.3.0
This commit is contained in:
parent
a27fb4a608
commit
bb7f2ad3f1
19 changed files with 1054 additions and 861 deletions
4
front/Cargo.lock
generated
4
front/Cargo.lock
generated
|
@ -4,7 +4,7 @@ version = 3
|
|||
|
||||
[[package]]
|
||||
name = "alejandra_engine"
|
||||
version = "1.2.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"mimalloc",
|
||||
"rnix",
|
||||
|
@ -13,7 +13,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "alejandra_front"
|
||||
version = "1.1.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"alejandra_engine",
|
||||
"console_error_panic_hook",
|
||||
|
|
|
@ -13,7 +13,7 @@ description = "The Uncompromising Nix Code Formatter"
|
|||
edition = "2021"
|
||||
name = "alejandra_front"
|
||||
repository = "https://github.com/kamadorueda/alejandra"
|
||||
version = "1.2.0"
|
||||
version = "1.3.0"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
|
8
front/flake.lock
generated
8
front/flake.lock
generated
|
@ -23,16 +23,16 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1648097358,
|
||||
"narHash": "sha256-GMoTKP/po2Nbkh1tvPvP8Ww6NyFW8FFst1Z3nfzffZc=",
|
||||
"lastModified": 1652073560,
|
||||
"narHash": "sha256-WigD7BFlm4Wr12ujm9HE7yH3U3LWtfoGu3im6EAu9RE=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "4d60081494259c0785f7e228518fee74e0792c1b",
|
||||
"rev": "43c99bebdab0ed66de2c4264e48b25999c2d9573",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"ref": "nixos-unstable-small",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
fenix.url = "github:nix-community/fenix";
|
||||
fenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
|
||||
};
|
||||
|
||||
outputs = inputs: let
|
||||
|
|
|
@ -25,7 +25,7 @@ export const SideBySide = () => {
|
|||
const [loading, setLoading] = react.useState(true);
|
||||
const [before, setBefore] = react.useState("");
|
||||
|
||||
react.useEffect(async () => {
|
||||
react.useEffect(() => {
|
||||
const searchParams = new URLSearchParams(window.location.search);
|
||||
|
||||
if (searchParams.has("path")) {
|
||||
|
@ -37,15 +37,19 @@ export const SideBySide = () => {
|
|||
}
|
||||
}, []);
|
||||
|
||||
react.useEffect(async () => {
|
||||
await wasm.default();
|
||||
setLoading(false);
|
||||
react.useEffect(() => {
|
||||
(async () => {
|
||||
await wasm.default();
|
||||
setLoading(false);
|
||||
})();
|
||||
}, [wasm]);
|
||||
|
||||
react.useEffect(async () => {
|
||||
react.useEffect(() => {
|
||||
if (path !== undefined) {
|
||||
const content = await get(path);
|
||||
setBefore(content);
|
||||
(async () => {
|
||||
const content = await get(path);
|
||||
setBefore(content);
|
||||
})();
|
||||
}
|
||||
}, [path]);
|
||||
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import App from "./App";
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
document.getElementById("root")
|
||||
);
|
||||
const CONTAINER = document.getElementById("root");
|
||||
const ROOT = ReactDOM.createRoot(CONTAINER);
|
||||
|
||||
ROOT.render(<App />);
|
||||
|
|
1630
front/yarn.lock
1630
front/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue