dsx/dsx_server repo system first implementation
This commit is contained in:
@@ -4,17 +4,17 @@
|
||||
<div class="file-toolbar">
|
||||
<div class="file-toolbar-search">
|
||||
<svg class="file-toolbar-search-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
|
||||
<form method="get" action="/packages/{{ package.config.name }}/~repo">
|
||||
<form method="get" action="/packages/{{ meta.id }}/~repo">
|
||||
<input type="text" name="q" placeholder="Filter files…" value="{{ query | default(value='') }}">
|
||||
</form>
|
||||
</div>
|
||||
<span class="dim small mono">{{ current_path | default(value="/") }}</span>
|
||||
</div>
|
||||
|
||||
{% if package.files and package.files | length > 0 %}
|
||||
{% if files and files | length > 0 %}
|
||||
<div class="file-tree-body">
|
||||
{% if current_path %}
|
||||
<a class="file-row" href="/packages/{{ package.config.name }}/~repo/{{ parent_path | default(value='') }}">
|
||||
<a class="file-row" href="/packages/{{ meta.id }}/~repo/{{ parent_path | default(value='') }}">
|
||||
<span class="file-icon">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z"/></svg>
|
||||
</span>
|
||||
@@ -23,9 +23,8 @@
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
{% for file in package.files %}
|
||||
{{ files::file_view(package = package.config.name, file = file) }}
|
||||
{% for file in files %}
|
||||
{{ files::file_view(package = meta.id, file = file) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
|
||||
@@ -6,25 +6,28 @@
|
||||
<div class="sidebar-card-title">Latest Build</div>
|
||||
<div class="sidebar-card-body">
|
||||
<div class="build-status-row">
|
||||
{% if package.meta.latest_build_status == "success" %}
|
||||
{% if meta.latest_build_status == "success" %}
|
||||
<span class="badge badge-success"><span class="dot"></span>passing</span>
|
||||
{% elif package.meta.latest_build_status == "failure" %}
|
||||
{% elif meta.latest_build_status == "failure" %}
|
||||
<span class="badge badge-failure"><span class="dot"></span>failing</span>
|
||||
{% elif package.meta.latest_build_status == "running" %}
|
||||
{% elif meta.latest_build_status == "running" %}
|
||||
<span class="badge badge-running"><span class="dot dot-pulse"></span>running</span>
|
||||
{% elif package.meta.latest_build_status == "pending" %}
|
||||
{% elif meta.latest_build_status == "pending" %}
|
||||
<span class="badge badge-pending"><span class="dot"></span>pending</span>
|
||||
{% else %}
|
||||
<span class="dim small">No builds yet</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if package.meta.latest_build_id %}
|
||||
<a class="build-link" href="/packages/{{ package.config.name }}/~artifact/{{ package.meta.latest_build_id }}">
|
||||
#{{ package.meta.latest_build_id }} — view logs →
|
||||
{% if meta.latest_build_id %}
|
||||
<a class="build-link"
|
||||
href="/api/pkg/{{ config.name }}/artifact"
|
||||
download="{{ config.name }}-{{ meta.latest_build_date }}.dsb"
|
||||
style="font-size:13px">
|
||||
"{{ config.name }}-{{ meta.latest_build_date }}.dsb"
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if package.meta.latest_build_date %}
|
||||
<div class="dim small mono" style="margin-top:6px">{{ package.meta.latest_build_date }}</div>
|
||||
{% if meta.latest_build_date %}
|
||||
<div class="dim small mono" style="margin-top:6px">{{ meta.latest_build_date }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -67,11 +70,11 @@
|
||||
<div class="card sidebar-card">
|
||||
<div class="sidebar-card-title">Links</div>
|
||||
<div class="sidebar-card-body" style="display:flex;flex-direction:column;gap:6px">
|
||||
<a href="/packages/{{ package.config.name }}/~repo" style="font-size:13px">
|
||||
<a href="/packages/{{ config.name }}/~repo" style="font-size:13px">
|
||||
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="vertical-align:middle;margin-right:4px"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>
|
||||
Browse files
|
||||
</a>
|
||||
<a href="/packages/{{ package.config.name }}/~artifact/" style="font-size:13px">
|
||||
<a href="/packages/{{ config.name }}/~artifact/" style="font-size:13px">
|
||||
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="vertical-align:middle;margin-right:4px"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
|
||||
Build history
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user