|
from flask import Flask, g, request, session, redirect, url_for, render_template
|
|
from flask_bootstrap import Bootstrap
|
|
import os
|
|
|
|
app = Flask(__name__)
|
|
Bootstrap(app)
|
|
app.secret_key = 'asdf'
|
|
app.debug = True
|
|
|
|
|
|
@app.route('/')
|
|
def index():
|
|
search = {'active': True, 'search_url': 'https://searx.info/?q='}
|
|
account_url = 'https://account.technicalincompetence.club'
|
|
apps = [
|
|
{'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
|
|
{'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
|
|
{'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
|
|
{'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
|
|
{'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
|
|
{'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
|
|
{'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
|
|
{'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
|
|
{'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
|
|
]
|
|
|
|
return render_template('index.j2', apps = apps, search = search, account_url = account_url)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app.run()
|