Open .kurd sub-pages and a site's own 404; show a suspended name as suspended (#40)

* Open a .kurd page address typed with a path

Tapping the address bar puts the page's full address in the search box,
for example https://dks-news.kurd/kategori/ekonomi. The search only knew
a bare name, and a .kurd address is never a web address or a search, so
such input produced no result at all: the reader could not open, edit or
reload any page below the home page.

KurdName.parseAddress takes the name and the path, query and fragment
after it (printable ASCII, no port or user info), and the .kurd row opens
that page. The look-alike check still runs on the name; choosing the
official name opens its home page, since the typed path belongs to the
other site.

* Show a .kurd site's own 404 page for a page it does not have

A missing page was answered with 404 and an empty body. WebView replaces
such a response with its own "Webpage not available" screen
(ERR_HTTP_RESPONSE_CODE_FAILURE), as if the site could not be reached,
although the gateway had proven the page absent from a site that loads.

For the page's own document the server now serves the site's /404.html
with status 404, as a web server does (dks.news ships one), and a line of
text when the site has none. Missing images and scripts are answered as
before. The fixture is a Kubo-built directory with index.html and
404.html.

* Show a suspended .kurd name as suspended, and open nothing of it

The register can now stop a name: the court for up to 30 days, the emergency
council for 72 hours. The lookup reads Navnisan::Suspensions beside Names, at
the same finalized block and through the same proof path, and applies the
pallet's rule: a suspension of the name, or of a name it sits under as a
subname, for the registration it was made against and not yet run out.

A suspended name resolves to a new Suspended result however it was read,
since a refusal needs no proof. The site server serves nothing (451) and the
browser shows the existing notice with a pause icon, who stopped the name,
until when, and the hash of the written reasons. Strings in English,
Kurmanji and Turkish.

A chain without the Suspensions item stores nothing there, so on today's
runtime nothing changes.
This commit is contained in:
SatoshiQaziMuhammed authored and GitHub committed 2026-11-08 21:35:35 +04:00
1 parent cb74f8cde0
commit f50ca479e0
24 files changed
+476 -21

No files matched your search

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- A .kurd name stopped by the court or the emergency council: a paused circle. -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M12,2A10,10 0,1 1,12 22A10,10 0,1 1,12 2ZM10,8.5V15.5M14,8.5V15.5"
android:strokeWidth="2"
android:strokeColor="#ffffff"
android:strokeLineCap="round" />
</vector>
@@ -2142,6 +2142,14 @@
<string name="dapp_kurd_open_anyway">Dîsa jî veke</string>
<string name="dapp_kurd_not_registered_title">Navekî wiha tune ye</string>
<string name="dapp_kurd_not_registered_message">%s ne tomarkirî ye, an jî dema wê qediyaye.</string>
<string name="dapp_kurd_suspended_title">Ev nav hatiye rawestandin</string>
<string name="dapp_kurd_suspended_court_message">Dîwanê ev nav heta %s rawestandiye. Heta wê demê malpera wê nayê vekirin.</string>
<string name="dapp_kurd_suspended_emergency_message">Desteya awarte ev nav heta %s rawestandiye. Ev rawestandin bi xwe diqede; Dîwan dikare wê zûtir rake.</string>
<string name="dapp_kurd_suspended_by">Biryar</string>
<string name="dapp_kurd_suspended_until">Heta</string>
<string name="dapp_kurd_suspended_reason">Hincet</string>
<string name="dapp_kurd_suspended_by_court">Dîwan</string>
<string name="dapp_kurd_suspended_by_emergency">Desteya awarte</string>
<string name="dapp_kurd_no_site_title">Li ser vî navî malper tune</string>
<string name="dapp_kurd_no_site_message">Nav tomarkirî ye, lê xwediyê wê malperek ku cîzdan dikare veke belav nekiriye.</string>
<string name="dapp_kurd_unavailable_title">Nehat barkirin</string>
@@ -2139,6 +2139,14 @@ Referral kısmına bu adresi yapıştır:
<string name="dapp_kurd_open_anyway">Yine de aç</string>
<string name="dapp_kurd_not_registered_title">Böyle bir ad yok</string>
<string name="dapp_kurd_not_registered_message">%s kayıtlı değil ya da kaydının süresi doldu.</string>
<string name="dapp_kurd_suspended_title">Bu ad askıya alındı</string>
<string name="dapp_kurd_suspended_court_message">Dîwan bu adı %s tarihine kadar askıya aldı. O zamana kadar sitesi açılamaz.</string>
<string name="dapp_kurd_suspended_emergency_message">Acil kurul bu adı %s tarihine kadar askıya aldı. Askı kendiliğinden biter; Dîwan daha önce kaldırabilir.</string>
<string name="dapp_kurd_suspended_by">Karar</string>
<string name="dapp_kurd_suspended_until">Bitiş</string>
<string name="dapp_kurd_suspended_reason">Gerekçe</string>
<string name="dapp_kurd_suspended_by_court">Dîwan</string>
<string name="dapp_kurd_suspended_by_emergency">Acil kurul</string>
<string name="dapp_kurd_no_site_title">Bu adda site yok</string>
<string name="dapp_kurd_no_site_message">Ad kayıtlı, ama sahibi cüzdanın açabileceği bir site yayımlamamış.</string>
<string name="dapp_kurd_unavailable_title">Yüklenemedi</string>
+8
View File
@@ -2867,6 +2867,14 @@
<string name="dapp_kurd_open_anyway">Open anyway</string>
<string name="dapp_kurd_not_registered_title">No such name</string>
<string name="dapp_kurd_not_registered_message">%s is not registered, or its registration has ended.</string>
<string name="dapp_kurd_suspended_title">This name is suspended</string>
<string name="dapp_kurd_suspended_court_message">The Dîwan has suspended this name until %s. Its site cannot be opened until then.</string>
<string name="dapp_kurd_suspended_emergency_message">The emergency council has suspended this name until %s. It ends by itself; the Dîwan can lift it sooner.</string>
<string name="dapp_kurd_suspended_by">Decided by</string>
<string name="dapp_kurd_suspended_until">Until</string>
<string name="dapp_kurd_suspended_reason">Reasons</string>
<string name="dapp_kurd_suspended_by_court">Dîwan</string>
<string name="dapp_kurd_suspended_by_emergency">Emergency council</string>
<string name="dapp_kurd_no_site_title">No site at this name</string>
<string name="dapp_kurd_no_site_message">The name is registered, but its owner has not published a site the wallet can open.</string>
<string name="dapp_kurd_unavailable_title">Could not be loaded</string>