-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Loïc Knuchel
committed
Nov 9, 2023
1 parent
f46fdbe
commit f31156d
Showing
23 changed files
with
133 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,6 +128,7 @@ These are the basic variables you will **need** to set up Azimutt: | |
- `PHX_HOST` (required): host of the deployed website (ex: `localhost` or `azimutt.app`), it's used to build absolute urls | ||
- `PORT` (required): the port the server will listen to (ex: `4000`) | ||
- `SECRET_KEY_BASE` (required): the secret used for server encryption (cookies and others), should be at least 64 bytes and you probably want a random value for it | ||
- `LICENCE_KEY` (optional): the licence key to unlock the pro features, contact us if you need one ([email protected]) | ||
- `DATABASE_URL` (required): the whole url to connect to your PostgreSQL database (ex: `postgresql://<user>:<pass>@<host>:<port>/<database>`) | ||
- `DATABASE_IPV6` (optional): if `true`, the database driver will use IPV6 | ||
- `DATABASE_POOL_SIZE` (optional, default: `10`): the database connection pool size | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,13 +18,14 @@ config :azimutt, | |
cli_url: "https://www.npmjs.com/package/azimutt", | ||
heroku_url: "https://elements.heroku.com/addons/azimutt", | ||
browser_extension_url: "https://chrome.google.com/webstore/detail/azimutt/bpifdkechgdibghkkpaioccoijeoebjf", | ||
documentation_url: "https://docs.azimutt.app", | ||
github_url: "https://github.com/azimuttapp/azimutt", | ||
github_issues: "https://github.com/azimuttapp/azimutt/issues", | ||
github_new_issue: "https://github.com/azimuttapp/azimutt/issues/new", | ||
twitter_url: "https://twitter.com/azimuttapp", | ||
linkedin_url: "https://www.linkedin.com/company/azimuttapp", | ||
slack_url: "https://join.slack.com/t/azimutt/shared_invite/zt-1pumru3pj-iBKIq7f~7ADOfySuxuFA2Q", | ||
azimutt_documentation: "https://docs.azimutt.app", | ||
azimutt_email: "[email protected]", | ||
azimutt_twitter: "https://twitter.com/azimuttapp", | ||
azimutt_linkedin: "https://www.linkedin.com/company/azimuttapp", | ||
azimutt_slack: "https://join.slack.com/t/azimutt/shared_invite/zt-1pumru3pj-iBKIq7f~7ADOfySuxuFA2Q", | ||
azimutt_github: "https://github.com/azimuttapp/azimutt", | ||
azimutt_github_issues: "https://github.com/azimuttapp/azimutt/issues", | ||
azimutt_github_issues_new: "https://github.com/azimuttapp/azimutt/issues/new", | ||
pro_plan_seat_price: 13, | ||
free_plan_seats: 3, | ||
# MUST stay in sync with frontend/src/Conf.elm (`features`) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,16 @@ defmodule Azimutt.Utils.Markdown do | |
end | ||
|
||
def preprocess(content, path) do | ||
github = "https://github.com/azimuttapp/azimutt" | ||
github = Azimutt.config(:azimutt_github) | ||
|
||
content | ||
|> String.replace("{{base_link}}", base_link(path)) | ||
|> String.replace("{{app_link}}", "/home") | ||
|> String.replace("{{roadmap_link}}", "#{github}/projects/1") | ||
|> String.replace("{{issues_link}}", "#{github}/issues?q=is%3Aissue+is%3Aopen+label%3A%22feature+request%22") | ||
|> String.replace("{{feedback_link}}", "#{github}/discussions") | ||
|> String.replace("{{azimutt_twitter}}", "https://twitter.com/azimuttapp") | ||
|> String.replace("{{azimutt_email}}", "[email protected]") | ||
|> String.replace("{{azimutt_twitter}}", Azimutt.config(:azimutt_twitter)) | ||
|> String.replace("{{azimutt_email}}", Azimutt.config(:azimutt_email)) | ||
end | ||
|
||
def base_link(path), do: path |> String.split("/") |> Enum.drop(2) |> Enum.take(2) |> Enum.map_join(fn p -> "/#{p}" end) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -280,7 +280,7 @@ defmodule AzimuttWeb.Router do | |
description: "API Documentation for Azimutt Backend", | ||
contact: %{ | ||
name: "Azimutt", | ||
email: "[email protected]" | ||
email: Azimutt.config(:azimutt_email) | ||
} | ||
}, | ||
consumes: ["application/json"], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
backend/lib/azimutt_web/templates/layout/_hello_comment.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<!-- Hey! Nice to meet you ❤️--> | ||
<!-- Did you know Azimutt is an Open Source project written in Elm & Elixir? --> | ||
<!-- You can find it here: https://github.com/azimuttapp/azimutt --> | ||
<!-- While you are here, please take the time to give us a ⭐️. It's a great support for us. --> | ||
<!-- You can also find us on https://twitter.com/azimuttapp or https://www.linkedin.com/company/azimuttapp --> | ||
<!-- You can find it here: <%= Azimutt.config(:azimutt_github) %> --> | ||
<!-- While you are here, please take the time to give us a ⭐️, it's a nice support for us. --> | ||
<!-- You can also find us on <%= Azimutt.config(:azimutt_twitter) %> or <%= Azimutt.config(:azimutt_linkedin) %> --> | ||
<!-- Come and say hi 👋, it keeps our motivation on top! --> |
5 changes: 5 additions & 0 deletions
5
backend/lib/azimutt_web/templates/layout/_instance_message.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<%= if Azimutt.config(:instance_message) do %> | ||
<div class={"relative flex items-center justify-center gap-x-6 bg-gray-600 bg-#{Azimutt.config(:instance_message_color)}-600 px-6 py-2.5 sm:px-3.5"}> | ||
<p class="text-sm leading-6 text-white"><%= raw(Azimutt.config(:instance_message)) %></p> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.