Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .githooks/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

allowed_prefixes=("fix" "chore" "docs" "feat" "refactor" "lint" "test" "deps")

Expand Down
2 changes: 1 addition & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

echo "Backend linting"
golangci-lint run
Expand Down
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
description = "EVENTS";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/25.11";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShell = pkgs.mkShell {
name = "EVENTS";

buildInputs = with pkgs; [
go
nodejs_22
golangci-lint
pnpm
libwebp
];
};
});
}
3 changes: 2 additions & 1 deletion ui/src/components/announcements/AnnouncementForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ export function AnnouncementForm({ announcement, defaultEvents, onSubmit }: Prop
</PageHeader>
<div className="border border-orange-500 rounded-lg whitespace-pre p-8">
{`Mattermost supports only a small subset of markdown features.\nThe preview you see does not necessarily reflect what mattermost will render.\nYou can find `}
{`a list of supported features `}
<a href="https://mattermost.com/blog/laymans-guide-to-markdown-on-mattermost/" target="_blank" rel="noopener noreferrer" className="cursor-pointer underline underline-offset-4 decoration-orange-500 hover:no-underline">here</a>
{` a list of supported features.`}
{`.`}
</div>
<form className="space-y-4" onSubmit={(e) => {
e.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/mails/MailForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,6 @@ const generators: Generator[] = [
},
{
name: "Long",
func: (events: Event[]) => events.map(e => `### ${e.name}\n\n__🕑 ${capitalize(format(e.startTime, "iiii (dd LLLL)", { locale: nlBE }))}__ \\\n__📍 ${e.location}__`).join("\n\n\n\n")
func: (events: Event[]) => events.map(e => `### **[${e.name}](${e.url})**\n\n__🕑 ${capitalize(format(e.startTime, "iiii (dd LLLL)", { locale: nlBE }))}__ \\\n__📍 ${e.location}__`).join("\n\n\n\n")
},
]