mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-22 08:01:21 -04:00
bundling required python dependencies, to make it easier on Tails users
This commit is contained in:
parent
18fd65acd7
commit
8ffa569094
224 changed files with 52588 additions and 0 deletions
7
lib/flask/testsuite/test_apps/blueprintapp/__init__.py
Normal file
7
lib/flask/testsuite/test_apps/blueprintapp/__init__.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
from blueprintapp.apps.admin import admin
|
||||
from blueprintapp.apps.frontend import frontend
|
||||
app.register_blueprint(admin)
|
||||
app.register_blueprint(frontend)
|
|
@ -0,0 +1,15 @@
|
|||
from flask import Blueprint, render_template
|
||||
|
||||
admin = Blueprint('admin', __name__, url_prefix='/admin',
|
||||
template_folder='templates',
|
||||
static_folder='static')
|
||||
|
||||
|
||||
@admin.route('/')
|
||||
def index():
|
||||
return render_template('admin/index.html')
|
||||
|
||||
|
||||
@admin.route('/index2')
|
||||
def index2():
|
||||
return render_template('./admin/index.html')
|
|
@ -0,0 +1 @@
|
|||
/* nested file */
|
|
@ -0,0 +1 @@
|
|||
Admin File
|
|
@ -0,0 +1 @@
|
|||
Hello from the Admin
|
|
@ -0,0 +1,8 @@
|
|||
from flask import Blueprint, render_template
|
||||
|
||||
frontend = Blueprint('frontend', __name__, template_folder='templates')
|
||||
|
||||
|
||||
@frontend.route('/')
|
||||
def index():
|
||||
return render_template('frontend/index.html')
|
|
@ -0,0 +1 @@
|
|||
Hello from the Frontend
|
4
lib/flask/testsuite/test_apps/config_module_app.py
Normal file
4
lib/flask/testsuite/test_apps/config_module_app.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
import os
|
||||
import flask
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
app = flask.Flask(__name__)
|
|
@ -0,0 +1,4 @@
|
|||
import os
|
||||
import flask
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
app = flask.Flask(__name__)
|
2
lib/flask/testsuite/test_apps/flask_broken/__init__.py
Normal file
2
lib/flask/testsuite/test_apps/flask_broken/__init__.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
import flask.ext.broken.b
|
||||
import missing_module
|
0
lib/flask/testsuite/test_apps/flask_broken/b.py
Normal file
0
lib/flask/testsuite/test_apps/flask_broken/b.py
Normal file
|
@ -0,0 +1 @@
|
|||
ext_id = 'newext_package'
|
|
@ -0,0 +1,2 @@
|
|||
def test_function():
|
||||
return 42
|
1
lib/flask/testsuite/test_apps/flask_newext_simple.py
Normal file
1
lib/flask/testsuite/test_apps/flask_newext_simple.py
Normal file
|
@ -0,0 +1 @@
|
|||
ext_id = 'newext_simple'
|
0
lib/flask/testsuite/test_apps/flaskext/__init__.py
Normal file
0
lib/flask/testsuite/test_apps/flaskext/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
ext_id = 'oldext_package'
|
|
@ -0,0 +1,2 @@
|
|||
def test_function():
|
||||
return 42
|
1
lib/flask/testsuite/test_apps/flaskext/oldext_simple.py
Normal file
1
lib/flask/testsuite/test_apps/flaskext/oldext_simple.py
Normal file
|
@ -0,0 +1 @@
|
|||
ext_id = 'oldext_simple'
|
2
lib/flask/testsuite/test_apps/importerror.py
Normal file
2
lib/flask/testsuite/test_apps/importerror.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
# NoImportsTestCase
|
||||
raise NotImplementedError
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
import flask
|
||||
|
||||
app = flask.Flask(__name__)
|
|
@ -0,0 +1,3 @@
|
|||
import flask
|
||||
|
||||
app = flask.Flask(__name__)
|
4
lib/flask/testsuite/test_apps/main_app.py
Normal file
4
lib/flask/testsuite/test_apps/main_app.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
import flask
|
||||
|
||||
# Test Flask initialization with main module.
|
||||
app = flask.Flask('__main__')
|
7
lib/flask/testsuite/test_apps/moduleapp/__init__.py
Normal file
7
lib/flask/testsuite/test_apps/moduleapp/__init__.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
from moduleapp.apps.admin import admin
|
||||
from moduleapp.apps.frontend import frontend
|
||||
app.register_module(admin)
|
||||
app.register_module(frontend)
|
0
lib/flask/testsuite/test_apps/moduleapp/apps/__init__.py
Normal file
0
lib/flask/testsuite/test_apps/moduleapp/apps/__init__.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from flask import Module, render_template
|
||||
|
||||
|
||||
admin = Module(__name__, url_prefix='/admin')
|
||||
|
||||
|
||||
@admin.route('/')
|
||||
def index():
|
||||
return render_template('admin/index.html')
|
||||
|
||||
|
||||
@admin.route('/index2')
|
||||
def index2():
|
||||
return render_template('./admin/index.html')
|
|
@ -0,0 +1 @@
|
|||
/* nested file */
|
|
@ -0,0 +1 @@
|
|||
Admin File
|
|
@ -0,0 +1 @@
|
|||
Hello from the Admin
|
|
@ -0,0 +1,9 @@
|
|||
from flask import Module, render_template
|
||||
|
||||
|
||||
frontend = Module(__name__)
|
||||
|
||||
|
||||
@frontend.route('/')
|
||||
def index():
|
||||
return render_template('frontend/index.html')
|
|
@ -0,0 +1 @@
|
|||
Hello from the Frontend
|
|
@ -0,0 +1,3 @@
|
|||
import flask
|
||||
|
||||
app = flask.Flask(__name__)
|
|
@ -0,0 +1,4 @@
|
|||
from flask import Module
|
||||
|
||||
|
||||
mod = Module(__name__, 'foo', subdomain='foo')
|
|
@ -0,0 +1 @@
|
|||
Hello Subdomain
|
Loading…
Add table
Add a link
Reference in a new issue