1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-13 11:40:29 +00:00

Re-license several more files under MPL-2.0

- Several files where @MCJack123 is the exclusive contributor. He has
   signed over all contributions to "any OSI-approved license". Thank
   you!

 - Various the file handle classes: Looking at these again, I don't
   think they contain any of the original code.
This commit is contained in:
Jonathan Coates 2023-03-28 10:23:28 +01:00
parent ca279d410a
commit 8a203e7454
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
33 changed files with 42 additions and 44 deletions

View File

@ -6,7 +6,7 @@ see: os.setAlarm To start an alarm.
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{alarm} event is fired when an alarm started with @{os.setAlarm} completes. The @{alarm} event is fired when an alarm started with @{os.setAlarm} completes.

View File

@ -6,7 +6,7 @@ see: disk_eject For the event sent when a disk is removed.
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{disk} event is fired when a disk is inserted into an adjacent or networked disk drive. The @{disk} event is fired when a disk is inserted into an adjacent or networked disk drive.

View File

@ -6,7 +6,7 @@ see: disk For the event sent when a disk is inserted.
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{disk_eject} event is fired when a disk is removed from an adjacent or networked disk drive. The @{disk_eject} event is fired when a disk is removed from an adjacent or networked disk drive.

View File

@ -6,7 +6,7 @@ see: http.checkURLAsync To check a URL asynchronously.
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{http_check} event is fired when a URL check finishes. The @{http_check} event is fired when a URL check finishes.

View File

@ -6,7 +6,7 @@ see: http.request To send an HTTP request.
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{http_failure} event is fired when an HTTP request fails. The @{http_failure} event is fired when an HTTP request fails.

View File

@ -6,7 +6,7 @@ see: http.request To make an HTTP request.
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{http_success} event is fired when an HTTP request returns successfully. The @{http_success} event is fired when an HTTP request returns successfully.

View File

@ -5,7 +5,7 @@ module: [kind=event] modem_message
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{modem_message} event is fired when a message is received on an open channel on any @{modem}. The @{modem_message} event is fired when a message is received on an open channel on any @{modem}.

View File

@ -5,7 +5,7 @@ module: [kind=event] monitor_resize
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{monitor_resize} event is fired when an adjacent or networked monitor's size is changed. The @{monitor_resize} event is fired when an adjacent or networked monitor's size is changed.

View File

@ -5,7 +5,7 @@ module: [kind=event] monitor_touch
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{monitor_touch} event is fired when an adjacent or networked Advanced Monitor is right-clicked. The @{monitor_touch} event is fired when an adjacent or networked Advanced Monitor is right-clicked.

View File

@ -5,7 +5,7 @@ module: [kind=event] paste
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{paste} event is fired when text is pasted into the computer through Ctrl-V (or ⌘V on Mac). The @{paste} event is fired when text is pasted into the computer through Ctrl-V (or ⌘V on Mac).

View File

@ -6,7 +6,7 @@ see: peripheral_detach For the event fired when a peripheral is detached.
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{peripheral} event is fired when a peripheral is attached on a side or to a modem. The @{peripheral} event is fired when a peripheral is attached on a side or to a modem.

View File

@ -6,7 +6,7 @@ see: peripheral For the event fired when a peripheral is attached.
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{peripheral_detach} event is fired when a peripheral is detached from a side or from a modem. The @{peripheral_detach} event is fired when a peripheral is detached from a side or from a modem.

View File

@ -7,7 +7,7 @@ see: rednet.receive To wait for a Rednet message with an optional timeout and pr
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{rednet_message} event is fired when a message is sent over Rednet. The @{rednet_message} event is fired when a message is sent over Rednet.

View File

@ -6,7 +6,7 @@ see: os.startTimer To start a timer.
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{timer} event is fired when a timer started with @{os.startTimer} completes. The @{timer} event is fired when a timer started with @{os.startTimer} completes.

View File

@ -5,7 +5,7 @@ module: [kind=event] websocket_closed
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{websocket_closed} event is fired when an open WebSocket connection is closed. The @{websocket_closed} event is fired when an open WebSocket connection is closed.

View File

@ -6,7 +6,7 @@ see: http.websocketAsync To send an HTTP request.
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{websocket_failure} event is fired when a WebSocket connection request fails. The @{websocket_failure} event is fired when a WebSocket connection request fails.

View File

@ -5,7 +5,7 @@ module: [kind=event] websocket_message
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{websocket_message} event is fired when a message is received on an open WebSocket connection. The @{websocket_message} event is fired when a message is received on an open WebSocket connection.

View File

@ -6,7 +6,7 @@ see: http.websocketAsync To open a WebSocket asynchronously.
<!-- <!--
SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
The @{websocket_success} event is fired when a WebSocket connection request returns successfully. The @{websocket_success} event is fired when a WebSocket connection request returns successfully.

View File

@ -5,7 +5,7 @@ module: [kind=reference] feature_compat
<!-- <!--
SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
SPDX-License-Identifier: LicenseRef-CCPL SPDX-License-Identifier: MPL-2.0
--> -->
# Lua 5.2/5.3 features in CC: Tweaked # Lua 5.2/5.3 features in CC: Tweaked

View File

@ -1,9 +1,8 @@
-- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers -- SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers
-- --
-- SPDX-License-Identifier: LicenseRef-CCPL -- SPDX-License-Identifier: MPL-2.0
--[[- Craft a recipe based on the turtle's inventory. --[[- Craft a recipe based on the turtle's inventory.
The turtle's inventory should set up like a crafting grid. For instance, to The turtle's inventory should set up like a crafting grid. For instance, to
craft sticks, slots 1 and 5 should contain planks. _All_ other slots should be craft sticks, slots 1 and 5 should contain planks. _All_ other slots should be
empty, including those outside the crafting "grid". empty, including those outside the crafting "grid".

View File

@ -1,6 +1,6 @@
// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. // SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers
// //
// SPDX-License-Identifier: LicenseRef-CCPL // SPDX-License-Identifier: MPL-2.0
package dan200.computercraft.client.render.monitor; package dan200.computercraft.client.render.monitor;

View File

@ -1,6 +1,6 @@
// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. // SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers
// //
// SPDX-License-Identifier: LicenseRef-CCPL // SPDX-License-Identifier: MPL-2.0
package dan200.computercraft.core.apis.handles; package dan200.computercraft.core.apis.handles;

View File

@ -1,6 +1,6 @@
// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. // SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers
// //
// SPDX-License-Identifier: LicenseRef-CCPL // SPDX-License-Identifier: MPL-2.0
package dan200.computercraft.core.apis.handles; package dan200.computercraft.core.apis.handles;

View File

@ -1,6 +1,6 @@
// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. // SPDX-FileCopyrightText: 2018 The CC: Tweaked Developers
// //
// SPDX-License-Identifier: LicenseRef-CCPL // SPDX-License-Identifier: MPL-2.0
package dan200.computercraft.core.apis.handles; package dan200.computercraft.core.apis.handles;

View File

@ -1,6 +1,6 @@
// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. // SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers
// //
// SPDX-License-Identifier: LicenseRef-CCPL // SPDX-License-Identifier: MPL-2.0
package dan200.computercraft.core.apis.handles; package dan200.computercraft.core.apis.handles;

View File

@ -1,6 +1,6 @@
// Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission. // SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers
// //
// SPDX-License-Identifier: LicenseRef-CCPL // SPDX-License-Identifier: MPL-2.0
package dan200.computercraft.core.apis.handles; package dan200.computercraft.core.apis.handles;

View File

@ -1,8 +1,7 @@
-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers -- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
-- --
-- SPDX-License-Identifier: LicenseRef-CCPL -- SPDX-License-Identifier: MPL-2.0
-- Prints information about CraftOS
term.setTextColor(colors.yellow) term.setTextColor(colors.yellow)
print(os.version() .. " on " .. _HOST) print(os.version() .. " on " .. _HOST)
term.setTextColor(colors.white) term.setTextColor(colors.white)

View File

@ -1,6 +1,6 @@
-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers -- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
-- --
-- SPDX-License-Identifier: LicenseRef-CCPL -- SPDX-License-Identifier: MPL-2.0
local function get_speakers(name) local function get_speakers(name)
if name then if name then

View File

@ -1,6 +1,6 @@
-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers -- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
-- --
-- SPDX-License-Identifier: LicenseRef-CCPL -- SPDX-License-Identifier: MPL-2.0
describe("The parallel library", function() describe("The parallel library", function()
describe("parallel.waitForAny", function() describe("parallel.waitForAny", function()

View File

@ -1,6 +1,6 @@
-- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers -- SPDX-FileCopyrightText: 2019 The CC: Tweaked Developers
-- --
-- SPDX-License-Identifier: LicenseRef-CCPL -- SPDX-License-Identifier: MPL-2.0
describe("The rednet library", function() describe("The rednet library", function()
describe("rednet.open", function() describe("rednet.open", function()

View File

@ -1,6 +1,6 @@
-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers -- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
-- --
-- SPDX-License-Identifier: LicenseRef-CCPL -- SPDX-License-Identifier: MPL-2.0
local function getupvalue(fn, name) local function getupvalue(fn, name)
for i = 1, debug.getinfo(fn, "u").nups do for i = 1, debug.getinfo(fn, "u").nups do

View File

@ -1,6 +1,6 @@
-- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers -- SPDX-FileCopyrightText: 2021 The CC: Tweaked Developers
-- --
-- SPDX-License-Identifier: LicenseRef-CCPL -- SPDX-License-Identifier: MPL-2.0
local function keys(tbl) local function keys(tbl)
local keys = {} local keys = {}

View File

@ -1,8 +1,8 @@
/* /*
SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers * SPDX-FileCopyrightText: 2020 The CC: Tweaked Developers
*
SPDX-License-Identifier: LicenseRef-CCPL * SPDX-License-Identifier: MPL-2.0
*/ */
:root { :root {
--nav-width: 250px; --nav-width: 250px;