Skip to content

Commit 74e8f66

Browse files
authored
Merge pull request #22 from ShanghaitechGeekPie/license-update
Add license notices
2 parents e911aeb + 40097c5 commit 74e8f66

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1344
-0
lines changed

cmd/cmd_tools/clear_userdata.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package main
218

319
import (

cmd/cmd_tools/import_course.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package main
218

319
import (

cmd/cmd_tools/import_teacher.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package main
218

319
import (

cmd/cmd_tools/main.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package main
218

319
import (

cmd/cmd_tools/set_admin.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package main
218

319
import (

cmd/coursebench-backend/main.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package main
218

319
import (

internal/config/fiber.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package config
218

319
import (

internal/config/viper.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package config
218

319
import (

internal/controllers/comments.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package controllers
218

319
import (

internal/controllers/comments/course.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package comments
218

319
import (

internal/controllers/comments/course_group.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package comments
218

319
import (

internal/controllers/comments/cover.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package comments
218

319
import (

internal/controllers/comments/delete.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package comments
218

319
import (

internal/controllers/comments/fold.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package comments
218

319
import (

internal/controllers/comments/like.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package comments
218

319
import (

internal/controllers/comments/post.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package comments
218

319
import (

internal/controllers/comments/recent.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package comments
218

319
import (

internal/controllers/comments/update.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package comments
218

319
import (

internal/controllers/comments/user.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package comments
218

319
import (

internal/controllers/courses.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright (C) 2021-2024 ShanghaiTech GeekPie
2+
// This file is part of CourseBench Backend.
3+
//
4+
// CourseBench Backend is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as
6+
// published by the Free Software Foundation, either version 3 of the
7+
// License, or (at your option) any later version.
8+
//
9+
// CourseBench Backend is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with CourseBench Backend. If not, see <http://www.gnu.org/licenses/>.
16+
117
package controllers
218

319
import (

0 commit comments

Comments
 (0)