-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
40 changed files
with
3,516 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,3 +161,4 @@ cython_debug/ | |
# Juju and Rock files | ||
*.charm | ||
*/*.rock | ||
*/*.snap |
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 |
---|---|---|
|
@@ -34,4 +34,5 @@ header: | |
- 'trivy.yaml' | ||
- 'zap_rules.tsv' | ||
- 'lib/**' | ||
- 'templates/**' | ||
comment: on-failure |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2023 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
lazydocs --no-watermark --output-path src-docs src/* |
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 |
---|---|---|
|
@@ -61,3 +61,7 @@ requires: | |
interface: saml | ||
limit: 1 | ||
optional: true | ||
|
||
peers: | ||
synapse-peers: | ||
interface: synapse-instance |
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,37 @@ | ||
# Copyright 2023 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
name: mjolnir | ||
summary: Mjolnir snap | ||
description: A moderation tool for Matrix | ||
version: "1.6.4" | ||
base: core22 | ||
license: Apache-2.0 | ||
confinement: strict | ||
apps: | ||
mjolnir: | ||
command: "bin/node $SNAP/mjolnir/index.js" | ||
plugs: | ||
- network | ||
parts: | ||
node: | ||
plugin: dump | ||
source: https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz | ||
stage: | ||
- bin | ||
- include | ||
- lib | ||
install-mjolnir: | ||
after: [node] | ||
plugin: nil | ||
source: https://github.com/matrix-org/mjolnir.git | ||
source-tag: v1.6.4 | ||
source-type: git | ||
override-build: | | ||
npm install -g yarn | ||
yarn install | ||
yarn build | ||
mv lib $CRAFT_PRIME/mjolnir | ||
mv node_modules $CRAFT_PRIME/ | ||
mv mjolnir-entrypoint.sh $CRAFT_PRIME/ | ||
Oops, something went wrong.