The editor now has a button to commit changes to a Jujutsu repository, which is automatically created if it's not present. A git remote is automatically set up using the URL template in settings.py. I use this with Forgejo's create-on-push feature to automatically create repositories on my Forgejo instance.
21 lines
1.2 KiB
Python
21 lines
1.2 KiB
Python
from django.contrib import admin
|
|
from django.urls import path
|
|
from .views import *
|
|
|
|
urlpatterns = [
|
|
path('', IndexView.as_view(), name='index'),
|
|
path('think/<slug:slug>/edit', ThinkView.as_view(), name='think'),
|
|
path('think/<slug:slug>/rename', RenameThinkView.as_view(), name='rename_think'),
|
|
path('think/<slug:slug>/delete', DeleteThinkView.as_view(), name='delete_think'),
|
|
path('think/<slug:slug>/file/<path:path>', ReadFileView.as_view(), name='read_file'),
|
|
path('think/<slug:slug>/save-file', SaveFileView.as_view(), name='save_file'),
|
|
path('think/<slug:slug>/rename-file', RenameFileView.as_view(), name='rename_file'),
|
|
path('think/<slug:slug>/delete-file', DeleteFileView.as_view(), name='delete_file'),
|
|
path('think/<slug:slug>/run-command', RunCommandView.as_view(), name='run_command'),
|
|
path('think/<slug:slug>/log', LogView.as_view(), name='log'),
|
|
path('think/<slug:slug>/jj/status', JJStatusView.as_view(), name='jj_status'),
|
|
path('think/<slug:slug>/jj/commit', JJCommitView.as_view(), name='jj_commit'),
|
|
path('new', CreateThinkView.as_view(), name='new_think'),
|
|
path('new/<slug:slug>', RemixThinkView.as_view(), name='remix_think'),
|
|
]
|
|
|