1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-31 09:37:56 +00:00

License CC:T according to the REUSE specification (#1351)

This adds SPDX license headers to all source code files, following the
REUSE[1] specification. This does not include any asset files (such as
generated JSON files, or textures). While REUSE does support doing so
with ".license" files, for now we define these licences using the
.reuse/dep5 file.

[1]: https://reuse.software/
This commit is contained in:
Jonathan Coates
2023-03-15 21:52:13 +00:00
committed by GitHub
parent 3e6e3e70e5
commit 895bc7721a
1005 changed files with 4982 additions and 3920 deletions

View File

@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
//
// SPDX-License-Identifier: MPL-2.0
plugins {
`lifecycle-base`
id("cc-tweaked.node")

View File

@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
//
// SPDX-License-Identifier: MPL-2.0
import { readFileSync } from "fs";
import path from "path";

View File

@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
//
// SPDX-License-Identifier: MPL-2.0
import type { FunctionComponent } from "react";
import { createElement as h } from "react";
import useExport from "./WithExport.js";

View File

@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
//
// SPDX-License-Identifier: MPL-2.0
import { createElement as h, useContext, createContext, FunctionComponent, ReactNode } from "react";
export type DataExport = {

View File

@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
//
// SPDX-License-Identifier: MPL-2.0
import type { FunctionComponent } from "react";
/**

View File

@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers
//
// SPDX-License-Identifier: MPL-2.0
import { render, h, Component, Computer, PeripheralKind } from "copycat/embed";
import type { ComponentChild } from "preact";
@@ -6,7 +10,7 @@ import startupFile from "./mount/startup.lua";
import exprTemplate from "./mount/expr_template.lua";
import exampleNfp from "./mount/example.nfp";
import exampleNft from "./mount/example.nft";
import exampleAudioLicense from "./mount/example.dfpwm.LICENSE";
import exampleAudioLicense from "./mount/example.dfpwm.license";
import exampleAudioUrl from "./mount/example.dfpwm";
const defaultFiles: { [filename: string]: string } = {
@@ -123,7 +127,7 @@ class Window extends Component<WindowProps, WindowState> {
}
if (example.includes("data/example.dfpwm")) {
files["data/example.dfpwm.LICENSE"] = exampleAudioLicense;
files["data/example.dfpwm.license"] = exampleAudioLicense;
try {
if (dfpwmAudio === null) dfpwmAudio = download(exampleAudioUrl);

View File

@@ -1,3 +1,4 @@
Playing Soliloquy [Remake] by Alcakight
Source: https://soundcloud.com/alcaknight/soliloquy-remake
License: under CC BY 3.0
SPDX-License-Identifier: CC-BY-3.0
SPDX-FileCopyrightText: 2017 Alcakight

View File

@@ -1,6 +1,10 @@
-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers
--
-- SPDX-License-Identifier: MPL-2.0
-- Print out license information if needed
if fs.exists("data/example.dfpwm") then
local h = io.open("data/example.dfpwm.LICENSE")
local h = io.open("data/example.dfpwm.license")
local contents = h:read("*a")
h:close()

View File

@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers
//
// SPDX-License-Identifier: LicenseRef-CCPL
:root {
--nav-width: 250px;
}

View File

@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
//
// SPDX-License-Identifier: MPL-2.0
/**
* Find all HTML files generated by illuaminate and pipe them through a remark.
*

View File

@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
//
// SPDX-License-Identifier: MPL-2.0
declare module "*.lua" {
const contents: string;
export default contents;
@@ -19,7 +23,7 @@ declare module "*.settings" {
export default contents;
}
declare module "*.LICENSE" {
declare module "*.license" {
const contents: string;
export default contents;
}