-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from arthur-schnitzler/main
updates
- Loading branch information
Showing
23 changed files
with
1,844 additions
and
33 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
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 |
---|---|---|
|
@@ -185,3 +185,4 @@ hansi.* | |
media/relations.gexf | ||
edges.csv | ||
nodes.csv | ||
node_modules/ |
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,47 @@ | ||
{% extends "base.html" %} | ||
{% load static %} | ||
{% load django_vite %} | ||
|
||
{% block title %}Vite{% endblock %} | ||
{% block scripts %} | ||
{% vite_hmr_client %} | ||
{% vite_asset 'js/main.js' %} | ||
{% endblock scripts %} | ||
|
||
{% block content %} | ||
<div class="container pt-4"> | ||
<h1 class="display-3 text-center">Netzwerk aller Verbindungen</h1> | ||
<div class="d-flex justify-content-center"> | ||
<div class="alert alert-warning d-flex align-items-center" role="alert"> | ||
<div> | ||
Hierbei handelt es sich nur um ein Proof of Concept | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="d-flex justify-content-center" id="spinner"> | ||
<div class="spinner-border" role="status"> | ||
<span class="visually-hidden">Lade die Netzwerkdaten...</span> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-2" > | ||
<div class="p2" style="visibility: hidden;" id="legend"> | ||
<ul> | ||
{% for x in model_list %} | ||
<li> | ||
<i class="{{ x.icon }}"></i> {{ x.name }} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="col-10"> | ||
<div id="app"></div> | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
</div> | ||
{% endblock %} |
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
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,89 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "bbbbf1e8", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from tqdm import tqdm" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "1233b691", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"uris = Uri.objects.filter(uri__icontains=\"schnitzler-tagebuch.acdh.oeaw.ac.at/entity/\")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "17196a40", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"uris.count()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "0e9d83d5", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"for x in tqdm(uris, total=uris.count()):\n", | ||
" new_uri = f'{x.uri.replace(\"/entity\", \"\")}.html'\n", | ||
" x.uri = new_uri\n", | ||
" try:\n", | ||
" x.save()\n", | ||
" except Exception as e:\n", | ||
" print(x, e)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "6b37ca48", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"Uri.objects.filter(uri__icontains=\"schnitzler-tagebuch.acdh.oeaw.ac.at/entity/\").count()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "e19d4223", | ||
"metadata": {}, | ||
"source": [ | ||
"### run on production 2024-02-29" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Django Shell-Plus", | ||
"language": "python", | ||
"name": "django_extensions" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.10.12" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
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,17 @@ | ||
{ | ||
"name": "vite-project", | ||
"private": true, | ||
"version": "0.0.0", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"preview": "vite preview" | ||
}, | ||
"devDependencies": { | ||
"vite": "^5.1.4" | ||
}, | ||
"dependencies": { | ||
"@cosmograph/cosmograph": "^1.3.1", | ||
"d3": "^7.8.5" | ||
} | ||
} |
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
Oops, something went wrong.