Skip to content

Commit

Permalink
Merge pull request #4 from idrisssystem/prepare-submodule
Browse files Browse the repository at this point in the history
Prepare submodule
  • Loading branch information
lennardevertz authored Feb 15, 2024
2 parents 8364921 + 53d8ade commit bd3d7f4
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
.idea/
buildResults/
static/
templates/
dist/
19 changes: 19 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from flask import Flask, render_template

app = Flask(__name__)

@app.route('/')
def hello_world():
return 'Hello, World!'

@app.route('/send', methods=["GET"])
def submodule_index():
return render_template('send-to-anyone-page.html')


@app.route("/send/<nav>", methods=["GET"])
def streamer_obs():
return render_template('send-to-anyone-page.html')

if __name__ == '__main__':
app.run(debug=True)
16 changes: 16 additions & 0 deletions send_blueprint.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from flask import Blueprint, render_template

send_blueprint = Blueprint('send', __name__,
template_folder='templates',
static_folder='static',
static_url_path='/frontend/send-to-anyone-page/static')


@send_blueprint.route('/send', methods=["GET"])
def send_index():
return render_template('send-to-anyone.html')


@send_blueprint.route('/send/<nav>', methods=["GET"])
def send_nav():
return render_template('send-to-anyone.html')
4 changes: 2 additions & 2 deletions src/send-to-anyone.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
</div>
</div>
<div class="grid grid-cols-3 divide-x divide-gray-900/5 bg-gray-50">
<a href="/docs" target="_blank" rel="noopener noreferrer" class="flex items-center justify-center gap-x-2 p-3 font-medium text-gray-900 hover:bg-gray-100">
<a href="https://docs.idriss.xyz/" target="_blank" rel="noopener noreferrer" class="flex items-center justify-center gap-x-2 p-3 font-medium text-gray-900 hover:bg-gray-100">
<svg class="h-5 w-5 flex-none text-gray-400" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<g transform="translate(2, 1)">
<path
Expand Down Expand Up @@ -231,6 +231,6 @@
</div>
</div>
</div>
<script src="../static/js/send/scriptSendToAnyone.js"></script>
<script src="../static/js/scriptSendToAnyone.js"></script>
</body>
</html>
13 changes: 4 additions & 9 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,16 @@ module.exports = (env, argv) => {
},
devtool: "inline-source-map",
output: {
path: path.resolve(__dirname, "../IDriss/static/js/send"),
path: path.resolve(__dirname, "./static/js"),
publicPath: "auto",
filename: "[name].js",
},
plugins: [
new CopyPlugin({
patterns: [
{
from: "./src/send-to-anyone.html",
to: "../../../templates",
},
{
from: "./src/generateSendToAnyoneCode.html",
to: "../../../templates",
},
{from: "./src/send-to-anyone.html", to: "../../templates"},
{from: "./src/generateSendToAnyoneCode.html", to: "../../templates"},

],
}),
new HtmlWebpackPlugin({
Expand Down

0 comments on commit bd3d7f4

Please sign in to comment.