mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
first vue 3 commit
This commit is contained in:
21
cookbook/static/vue3/assets/main-Ck0XzBN_.js
Normal file
21
cookbook/static/vue3/assets/main-Ck0XzBN_.js
Normal file
File diff suppressed because one or more lines are too long
7
cookbook/static/vue3/manifest.json
Normal file
7
cookbook/static/vue3/manifest.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"src/apps/tandoor/main.ts": {
|
||||
"file": "assets/main-Ck0XzBN_.js",
|
||||
"src": "src/apps/tandoor/main.ts",
|
||||
"isEntry": true
|
||||
}
|
||||
}
|
||||
11
cookbook/templates/frontend/tandoor.html
Normal file
11
cookbook/templates/frontend/tandoor.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{% load django_vite %}
|
||||
|
||||
|
||||
{% vite_hmr_client %}
|
||||
{% vite_asset 'src/apps/tandoor/main.ts' %}
|
||||
|
||||
<script src="{% url 'js_reverse' %}"></script>
|
||||
|
||||
<div id="app">
|
||||
|
||||
</div>
|
||||
@@ -74,6 +74,7 @@ for p in PLUGINS:
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.index, name='index'),
|
||||
path('v3/', views.vue3, name='vue3'),
|
||||
path('setup/', views.setup, name='view_setup'),
|
||||
path('no-group', views.no_groups, name='view_no_group'),
|
||||
path('space-overview', views.space_overview, name='view_space_overview'),
|
||||
|
||||
@@ -499,6 +499,11 @@ def test2(request):
|
||||
return HttpResponseRedirect(reverse('index'))
|
||||
|
||||
|
||||
@group_required('admin')
|
||||
def vue3(request):
|
||||
return render(request, 'frontend/tandoor.html', {})
|
||||
|
||||
|
||||
def get_orphan_files(delete_orphans=False):
|
||||
# Get list of all image files in media folder
|
||||
media_dir = settings.MEDIA_ROOT
|
||||
|
||||
Reference in New Issue
Block a user