diff --git a/experiments/x86emu/www/js/Instance.mjs b/experiments/x86emu/www/js/Instance.mjs index e64dd404..54df570e 100644 --- a/experiments/x86emu/www/js/Instance.mjs +++ b/experiments/x86emu/www/js/Instance.mjs @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2024 Puter Technologies Inc. + * + * This file is part of Puter. + * + * Puter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + import { V86 } from "./V86Wrapper.mjs"; /** * Class representing an Instance of an emulator machine. diff --git a/experiments/x86emu/www/js/InstanceManager.mjs b/experiments/x86emu/www/js/InstanceManager.mjs index 6e8ebce6..04a58134 100644 --- a/experiments/x86emu/www/js/InstanceManager.mjs +++ b/experiments/x86emu/www/js/InstanceManager.mjs @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2024 Puter Technologies Inc. + * + * This file is part of Puter. + * + * Puter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + import Instance from "./Instance.mjs" /** diff --git a/experiments/x86emu/www/js/V86Wrapper.mjs b/experiments/x86emu/www/js/V86Wrapper.mjs index 5417bc68..f81510e4 100644 --- a/experiments/x86emu/www/js/V86Wrapper.mjs +++ b/experiments/x86emu/www/js/V86Wrapper.mjs @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2024 Puter Technologies Inc. + * + * This file is part of Puter. + * + * Puter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + let V86; if (typeof window !== 'undefined') { diff --git a/experiments/x86emu/www/main.js b/experiments/x86emu/www/main.js index 23e207f9..69df0af8 100755 --- a/experiments/x86emu/www/main.js +++ b/experiments/x86emu/www/main.js @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2024 Puter Technologies Inc. + * + * This file is part of Puter. + * + * Puter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + #!/usr/bin/env node /* * Copyright (C) 2024 Puter Technologies Inc. diff --git a/src/backend/src/services/ParameterService.js b/src/backend/src/services/ParameterService.js index ed08bae4..8ff72367 100644 --- a/src/backend/src/services/ParameterService.js +++ b/src/backend/src/services/ParameterService.js @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2024 Puter Technologies Inc. + * + * This file is part of Puter. + * + * Puter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const BaseService = require("./BaseService"); /* diff --git a/src/backend/src/services/information/InformationService.js b/src/backend/src/services/information/InformationService.js index 7e508cae..2e371d79 100644 --- a/src/backend/src/services/information/InformationService.js +++ b/src/backend/src/services/information/InformationService.js @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2024 Puter Technologies Inc. + * + * This file is part of Puter. + * + * Puter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const BaseService = require("../BaseService"); /* diff --git a/tools/comment-parser/main.js b/tools/comment-parser/main.js index 68e64245..185cab09 100644 --- a/tools/comment-parser/main.js +++ b/tools/comment-parser/main.js @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2024 Puter Technologies Inc. + * + * This file is part of Puter. + * + * Puter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const lib = {}; lib.dedent_lines = lines => { // If any lines are just spaces, remove the spaces @@ -311,7 +330,7 @@ const CommentParser = () => { break; } } - console.log('comment?', comment); + // console.log('comment?', comment); if ( ! comment ) break; results.push(comment); } diff --git a/tools/comment-parser/test/test.js b/tools/comment-parser/test/test.js index 67ef095c..f0518ef3 100644 --- a/tools/comment-parser/test/test.js +++ b/tools/comment-parser/test/test.js @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2024 Puter Technologies Inc. + * + * This file is part of Puter. + * + * Puter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + const { StringStream, LinesCommentParser, diff --git a/tools/file-walker/test.js b/tools/file-walker/test.js index eec352f9..d0bc26f5 100644 --- a/tools/file-walker/test.js +++ b/tools/file-walker/test.js @@ -31,10 +31,15 @@ const EXCLUDE_LISTS = { /^src\/dev-center\/js/, /src\/backend\/src\/public\/assets/, /^src\/gui\/src\/lib/, - /^src\/puter\.js/, + /^eslint\.config\.js$/, ] }; +EXCLUDE_LISTS.NOT_AGPL = [ + ...EXCLUDE_LISTS.NOT_SOURCE, + /^src\/puter-js/, +]; + const hl_readdir = async path => { const names = await fs.promises.readdir(path); const entries = []; diff --git a/tools/license-headers/main.js b/tools/license-headers/main.js index 57c1c985..9b4596e5 100644 --- a/tools/license-headers/main.js +++ b/tools/license-headers/main.js @@ -123,7 +123,7 @@ const LicenseChecker = ({ } } - console.log('headers', headers); + // console.log('headers', headers); const combined = headers_lines.slice(top, bottom).flat(); const combined_txt = combined.join('\n'); @@ -165,7 +165,7 @@ const license_check_test = async ({ options }) => { }); const walk_iterator = walk({ - excludes: EXCLUDE_LISTS.NOT_SOURCE, + excludes: EXCLUDE_LISTS.NOT_AGPL, }, path_.join(__dirname, '../..')); for await ( const value of walk_iterator ) { if ( value.is_dir ) continue; @@ -216,7 +216,7 @@ const cmd_check_fn = async () => { }; const walk_iterator = walk({ - excludes: EXCLUDE_LISTS.NOT_SOURCE, + excludes: EXCLUDE_LISTS.NOT_AGPL, }, path_.join(__dirname, '../..')); for await ( const value of walk_iterator ) { if ( value.is_dir ) continue; @@ -355,7 +355,7 @@ const cmd_sync_fn = async () => { }; const walk_iterator = walk({ - excludes: EXCLUDE_LISTS.NOT_SOURCE, + excludes: EXCLUDE_LISTS.NOT_AGPL, }, '.'); for await ( const value of walk_iterator ) { if ( value.is_dir ) continue; @@ -378,7 +378,7 @@ const cmd_sync_fn = async () => { continue; } if ( ! diff_info.has_header ) { - if ( false ) fs.writeFileSync( + fs.writeFileSync( value.path, comment_parser.output_comment({ style: 'block',