Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] add keeweb #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
Empty file added keeweb/__init__.py
Empty file.
Binary file added keeweb/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added keeweb/assets/screen-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added keeweb/assets/screen-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added keeweb/assets/screen-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions keeweb/backup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from arkos.backup import BackupController


class KeeWebBackup(BackupController):
def get_config(self, site):
return []

def get_data(self, site):
return []

def pre_backup(self, site):
pass

def post_backup(self, site):
pass

def pre_restore(self):
pass

def post_restore(self, site, dbpasswd):
pass
31 changes: 31 additions & 0 deletions keeweb/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"id": "keeweb",
"name": "KeeWeb",
"type": "website",
"icon": "key",
"description": {
"short": "Free cross-platform password manager compatible with KeePass",
"long": "This webapp is a browser and desktop password manager compatible with KeePass databases. It doesn't require any server or additional resources. The app can run either in browser, or as a desktop app."
},
"categories": [
{
"primary": "Websites",
"secondary": ["Websites"]
}
],
"version": "1.4.0-1",
"author": "matrob",
"homepage": "https://github.com/matrob/",
"app_author": "Antelle",
"app_homepage": "https://keeweb.info/",
"logo": true,
"screenshots": ["screen-1.png, screen-2.png, screen-3.png"],
"services": [],
"modules": ["website", "backup"],
"dependencies": [],
"generation": 1,
"website_updates": false,
"download_url": "https://github.com/keeweb/keeweb/archive/gh-pages.tar.gz",
"database_engines": [],
"uses_php": false
}
36 changes: 36 additions & 0 deletions keeweb/website.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import nginx
import os

from arkos.system import users, groups
from arkos.websites import Site


class KeeWeb(Site):
addtoblock = []

def pre_install(self, extra_vars):
pass

def post_install(self, extra_vars, dbpasswd=""):
# Give access to httpd
uid, gid = users.get_system("http").uid, groups.get_system("http").gid
for r, d, f in os.walk(self.path):
for x in d:
os.chown(os.path.join(r, x), uid, gid)
for x in f:
os.chown(os.path.join(r, x), uid, gid)

def pre_remove(self):
pass

def post_remove(self):
pass

def enable_ssl(self, cfile, kfile):
pass

def disable_ssl(self):
pass

def update(self, pkg, ver):
pass