Browse Source

chore(docs): Add code of conduct, licensing info.

tags/v0.0.1^2
jackyalcine 1 year ago
parent
commit
bee58d4cb2
Signed by: me <yo@jacky.wtf> GPG Key ID: 36CD7728BDFD66FF
41 changed files with 748 additions and 11 deletions
  1. +18
    -6
      .credo.exs
  2. +18
    -0
      .formatter.exs
  3. +76
    -0
      CODE_OF_CONDUCT.markdown
  4. +2
    -4
      README.markdown
  5. +18
    -0
      lib/indieweb/app.ex
  6. +18
    -0
      lib/indieweb/mf2.ex
  7. +18
    -0
      lib/indieweb/micropub.ex
  8. +18
    -0
      lib/indieweb/post.ex
  9. +18
    -0
      lib/indieweb/relme.ex
  10. +18
    -0
      lib/indieweb/syndication.ex
  11. +18
    -0
      lib/indieweb/webmention.ex
  12. +18
    -0
      lib/repo/category.ex
  13. +18
    -0
      lib/repo/entry.ex
  14. +18
    -0
      lib/repo/otp_secret.ex
  15. +18
    -0
      lib/repo/relme.ex
  16. +18
    -0
      lib/repo/setting.ex
  17. +18
    -0
      lib/repo/webmention.ex
  18. +18
    -0
      lib/storage/image.ex
  19. +18
    -0
      lib/storage/json.ex
  20. +18
    -0
      lib/storage/video.ex
  21. +20
    -1
      mix.exs
  22. +1
    -0
      mix.lock
  23. +4
    -0
      package.json
  24. +30
    -0
      priv/repo/seeds/entry.exs
  25. +3
    -0
      scripts/license-update.sh
  26. +18
    -0
      web/channels/user_socket.ex
  27. +18
    -0
      web/controllers/auth_controller.ex
  28. +18
    -0
      web/controllers/category_controller.ex
  29. +18
    -0
      web/controllers/entry_controller.ex
  30. +18
    -0
      web/controllers/fallback_controller.ex
  31. +18
    -0
      web/controllers/page_controller.ex
  32. +18
    -0
      web/controllers/settings_controller.ex
  33. +18
    -0
      web/controllers/setup_controller.ex
  34. +18
    -0
      web/views/auth_view.ex
  35. +18
    -0
      web/views/category_view.ex
  36. +18
    -0
      web/views/entry_view.ex
  37. +18
    -0
      web/views/error_view.ex
  38. +18
    -0
      web/views/layout_view.ex
  39. +18
    -0
      web/views/page_view.ex
  40. +18
    -0
      web/views/settings_view.ex
  41. +18
    -0
      web/views/setup_view.ex

+ 18
- 6
.credo.exs View File

@@ -1,9 +1,21 @@
# This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
%{
#
# You can have as many configs as you like in the `configs:` field.


+ 18
- 0
.formatter.exs View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
[
inputs: ["mix.exs", "{web,config,lib,test}/**/*.{ex,exs}"],
line_length: 120,


+ 76
- 0
CODE_OF_CONDUCT.markdown View File

@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at yo@jacky.wtf. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq

+ 2
- 4
README.markdown View File

@@ -8,17 +8,15 @@ still interact with [social media platforms][5] - on their own terms. The notion
Koype is that everything you post is _your data_ and **you** are your own source of truth.

- Setup information is in [`INSTALL`][2].
- License information is in [LICENSE][6]
- General documentation can be found in [`docs/`][3].

### Licensing

This project's source code is licensed under the [AGPL3][1].

[1]: https://choosealicense.com/licenses/agpl-3.0/
[2]: ./INSTALL.markdown
[3]: ./docs
[4]: https://indieweb.org/ownyourdata
[5]: https://indieweb.org/silo
[6]: ./LICENSE.Koype
[badge:build:image]: https://ci.jacky.wtf/api/badges/indieweb/koype/status.svg
[badge:build:link]: https://ci.jacky.wtf/indieweb/koype
[badge:donate:image]: http://img.shields.io/liberapay/receives/jackyalcine.svg?logo=liberapay


+ 18
- 0
lib/indieweb/app.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule IndieWeb.App do
@moduledoc "High-level abstraction for application info resolution."
require Logger


+ 18
- 0
lib/indieweb/mf2.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule IndieWeb.MF2 do
require Logger



+ 18
- 0
lib/indieweb/micropub.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule IndieWeb.Micropub do
@actionable_keys ~w(replace add delete)
@reserved_mp_param_keys ~w(h action url content) ++ @actionable_keys


+ 18
- 0
lib/indieweb/post.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule IndieWeb.Post do
alias Phoenix.HTML.SimplifiedHelpers.Truncate, as: T



+ 18
- 0
lib/indieweb/relme.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule IndieWeb.RelMe do
@moduledoc "Handles logic for parsing rel-me information."
alias Koype.Repo.RelMe


+ 18
- 0
lib/indieweb/syndication.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule IndieWeb.Syndication do
def targets() do
[]


+ 18
- 0
lib/indieweb/webmention.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule IndieWeb.Webmention do
@moduledoc """
"""


+ 18
- 0
lib/repo/category.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Repo.Category do
@moduledoc false



+ 18
- 0
lib/repo/entry.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Repo.Entry do
use Koype.Web, :model
use Arc.Ecto.Schema


+ 18
- 0
lib/repo/otp_secret.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Repo.OtpSecret do
@moduledoc "Logic for OTP secrets."
@secret_age 60 * 60 * 24 * 30


+ 18
- 0
lib/repo/relme.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Repo.RelMe do
use Koype.Web, :model



+ 18
- 0
lib/repo/setting.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Repo.Setting do
use Ecto.Schema
import Ecto.Changeset


+ 18
- 0
lib/repo/webmention.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Repo.Webmention do
use Koype.Web, :model
use Arc.Ecto.Schema


+ 18
- 0
lib/storage/image.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Storage.Image do
use Arc.Definition
use Arc.Ecto.Definition


+ 18
- 0
lib/storage/json.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Storage.Json do
@moduledoc """
Stores JSON information to disk.


+ 18
- 0
lib/storage/video.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Storage.Video do
use Arc.Definition
use Arc.Ecto.Definition


+ 20
- 1
mix.exs View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Mixfile do
use Mix.Project

@@ -6,6 +24,7 @@ defmodule Koype.Mixfile do
def project do
[
app: :koype,
name: "Koype",
version: @version,
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
@@ -80,7 +99,7 @@ defmodule Koype.Mixfile do
{:ecto, "~> 2.2.0"},
{:ex_aws, "~> 2.0"},
{:ex_aws_s3, "~> 2.0"},
{:ex_doc, ">= 0.0.0", only: :dev},
{:ex_doc, ">= 0.19.0", only: :dev},
{:ex_image_info, "~> 0.2.3"},
{:ex_machina, "~> 2.2", only: :test},
{:excoveralls, "~> 0.8", only: :test},


+ 1
- 0
mix.lock View File

@@ -55,6 +55,7 @@
"jason": {:hex, :jason, "1.1.2", "b03dedea67a99223a2eaf9f1264ce37154564de899fd3d8b9a21b1a6fd64afe7", [:mix], [{:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm"},
"jose": {:hex, :jose, "1.8.4", "7946d1e5c03a76ac9ef42a6e6a20001d35987afd68c2107bcd8f01a84e75aa73", [:mix, :rebar3], [{:base64url, "~> 0.0.1", [hex: :base64url, repo: "hexpm", optional: false]}], "hexpm"},
"jsx": {:hex, :jsx, "2.8.3", "a05252d381885240744d955fbe3cf810504eb2567164824e19303ea59eef62cf", [:mix, :rebar3], [], "hexpm"},
"licensir": {:hex, :licensir, "0.2.7", "ad902c337560ccd70de843e5b208c1db08ba2f879ee01c9389023b779131f30a", [:mix], [], "hexpm"},
"logster": {:hex, :logster, "0.10.0", "5ba89528f1b143328c2ef2050ced34e4f0c981482a1cfab94393139a9b5189b6", [:mix], [{:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm"},
"makeup": {:hex, :makeup, "0.5.5", "9e08dfc45280c5684d771ad58159f718a7b5788596099bdfb0284597d368a882", [:mix], [{:nimble_parsec, "~> 0.4", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm"},
"makeup_elixir": {:hex, :makeup_elixir, "0.10.0", "0f09c2ddf352887a956d84f8f7e702111122ca32fbbc84c2f0569b8b65cbf7fa", [:mix], [{:makeup, "~> 0.5.5", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm"},


+ 4
- 0
package.json View File

@@ -91,6 +91,10 @@
],
"*.scss": [
"stylelint --fix"
],
"*.ex": [
"scripts/license-update.sh",
"git add"
]
}
}

+ 30
- 0
priv/repo/seeds/entry.exs View File

@@ -1,3 +1,33 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This program 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 <https://www.gnu.org/licenses/>.
# Copyright © 2019 Jacky Alcine <yo@jacky.wtf>
#
# This program 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 <https://www.gnu.org/licenses/>.
import Seedex

seed Koype.Repo.Entry, fn entry ->


+ 3
- 0
scripts/license-update.sh View File

@@ -0,0 +1,3 @@
#!/usr/bin/env sh

licensing apply lib/**/*\.ex web/**/*\.ex mix.exs .credo.exs .formatter.exs -r --force

+ 18
- 0
web/channels/user_socket.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.UserSocket do
use Phoenix.Socket



+ 18
- 0
web/controllers/auth_controller.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.AuthController do
use Koype.Web, :controller
alias Koype.Repo.OtpSecret


+ 18
- 0
web/controllers/category_controller.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.CategoryController do
use Koype.Web, :controller



+ 18
- 0
web/controllers/entry_controller.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.EntryController do
use Koype.Web, :controller
alias Koype.Repo.Entry


+ 18
- 0
web/controllers/fallback_controller.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.FallbackController do
use Phoenix.Controller



+ 18
- 0
web/controllers/page_controller.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.PageController do
use Koype.Web, :controller



+ 18
- 0
web/controllers/settings_controller.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.SettingsController do
use Koype.Web, :controller
alias Koype.Repo


+ 18
- 0
web/controllers/setup_controller.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.SetupController do
use Koype.Web, :controller
alias Koype.{Setup, Profile}


+ 18
- 0
web/views/auth_view.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.AuthView do
use Koype.Web, :view



+ 18
- 0
web/views/category_view.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.CategoryView do
use Koype.Web, :view
alias Koype.Repo.Category


+ 18
- 0
web/views/entry_view.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.EntryView do
use Koype.Web, :view
alias Koype.Repo.Entry


+ 18
- 0
web/views/error_view.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.ErrorView do
use Koype.Web, :view



+ 18
- 0
web/views/layout_view.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.LayoutView do
use Koype.Web, :view



+ 18
- 0
web/views/page_view.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.PageView do
use Koype.Web, :view



+ 18
- 0
web/views/settings_view.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.SettingsView do
use Koype.Web, :view



+ 18
- 0
web/views/setup_view.ex View File

@@ -1,3 +1,21 @@
# Koype: a IndieWeb-focused, single-tenant website engine for people.
#
# Copyright © 2019 Jacky Alciné <jacky.is@black.af>
#
# This file belongs to the Koype project.
#
# This program 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 <https://www.gnu.org/licenses/>.
defmodule Koype.Web.SetupView do
use Koype.Web, :view
import Plug.Conn, only: [get_session: 2]


Loading…
Cancel
Save