diff --git a/crates/unitdc-web/ui/src/App.css b/crates/unitdc-web/ui/src/App.css index a22edb6..bc99ab5 100644 --- a/crates/unitdc-web/ui/src/App.css +++ b/crates/unitdc-web/ui/src/App.css @@ -1,3 +1,21 @@ +/** + * Copyright 2024 eternal-flame-AD + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + html { height: 100%; } diff --git a/crates/unitdc-web/ui/src/App.tsx b/crates/unitdc-web/ui/src/App.tsx index 138d622..c0a7e23 100644 --- a/crates/unitdc-web/ui/src/App.tsx +++ b/crates/unitdc-web/ui/src/App.tsx @@ -1,3 +1,21 @@ +/** + * Copyright 2024 eternal-flame-AD + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + import { useState, useReducer } from 'react' diff --git a/crates/unitdc-web/ui/src/components/ErrorCell.tsx b/crates/unitdc-web/ui/src/components/ErrorCell.tsx index a3f6663..b7e41af 100644 --- a/crates/unitdc-web/ui/src/components/ErrorCell.tsx +++ b/crates/unitdc-web/ui/src/components/ErrorCell.tsx @@ -1,3 +1,21 @@ +/** + * Copyright 2024 eternal-flame-AD + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + export interface ErrorCellProps { text: string } diff --git a/crates/unitdc-web/ui/src/components/InputCell.tsx b/crates/unitdc-web/ui/src/components/InputCell.tsx index 658aaeb..32b9ba1 100644 --- a/crates/unitdc-web/ui/src/components/InputCell.tsx +++ b/crates/unitdc-web/ui/src/components/InputCell.tsx @@ -1,3 +1,21 @@ +/** + * Copyright 2024 eternal-flame-AD + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + import { useEffect, useRef } from "react" export interface InputCellProps { diff --git a/crates/unitdc-web/ui/src/components/Keyboard.tsx b/crates/unitdc-web/ui/src/components/Keyboard.tsx index 2d6fcdd..14867fa 100644 --- a/crates/unitdc-web/ui/src/components/Keyboard.tsx +++ b/crates/unitdc-web/ui/src/components/Keyboard.tsx @@ -1,3 +1,21 @@ +/** + * Copyright 2024 eternal-flame-AD + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + import { useRef, useState } from "react" export type TokenType = "operator" | "literal_num" | "unit" diff --git a/crates/unitdc-web/ui/src/components/OutputCell.tsx b/crates/unitdc-web/ui/src/components/OutputCell.tsx index 4f82e26..e8ebfd5 100644 --- a/crates/unitdc-web/ui/src/components/OutputCell.tsx +++ b/crates/unitdc-web/ui/src/components/OutputCell.tsx @@ -1,3 +1,21 @@ +/** + * Copyright 2024 eternal-flame-AD + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + import { Quantity } from "../types"; export interface OutputCellProps { diff --git a/crates/unitdc-web/ui/src/main.tsx b/crates/unitdc-web/ui/src/main.tsx index 80d56b3..6a2038e 100644 --- a/crates/unitdc-web/ui/src/main.tsx +++ b/crates/unitdc-web/ui/src/main.tsx @@ -1,3 +1,21 @@ +/** + * Copyright 2024 eternal-flame-AD + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + import React from 'react' import ReactDOM from 'react-dom/client' import App from './App.tsx' diff --git a/crates/unitdc-web/ui/src/types.ts b/crates/unitdc-web/ui/src/types.ts index 545a490..30bc9a7 100644 --- a/crates/unitdc-web/ui/src/types.ts +++ b/crates/unitdc-web/ui/src/types.ts @@ -1,3 +1,21 @@ +/** + * Copyright 2024 eternal-flame-AD + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + export interface Quantity { _str: string; number_float: number; diff --git a/crates/unitdc-web/ui/src/util.ts b/crates/unitdc-web/ui/src/util.ts index c9edf35..e0ae32d 100644 --- a/crates/unitdc-web/ui/src/util.ts +++ b/crates/unitdc-web/ui/src/util.ts @@ -1,3 +1,21 @@ +/** + * Copyright 2024 eternal-flame-AD + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + import { useState } from 'react'; //create your forceUpdate hook diff --git a/crates/unitdc-web/ui/src/vite-env.d.ts b/crates/unitdc-web/ui/src/vite-env.d.ts index 11f02fe..619c86e 100644 --- a/crates/unitdc-web/ui/src/vite-env.d.ts +++ b/crates/unitdc-web/ui/src/vite-env.d.ts @@ -1 +1,19 @@ +/** + * Copyright 2024 eternal-flame-AD + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + ///