Rename UI to Label Printer and cache pip builds #29

Merged
rhino merged 1 commits from cursor/label-printer-pip-cache into main 2026-10-09 14:50:44 +00:00
9 changed files with 13 additions and 12 deletions

View File

@@ -25,9 +25,10 @@ ENV PIP_TRUSTED_HOST=${PIP_TRUSTED_HOST}
WORKDIR /app
# Install dependencies
# Install dependencies (BuildKit pip cache survives rebuilds)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN --mount=type=cache,target=/root/.cache/pip \
pip install -r requirements.txt
# Copy project
COPY . .

View File

@@ -1,4 +1,4 @@
# Lithium | Print Label
# Lithium Labels
A self-hosted web application for tracking production orders and generating pixel-perfect labels for canisters and boxes.

View File

@@ -11,7 +11,7 @@ from .schemas import (
)
from .calibration import load_calibration, save_calibration, DEFAULTS, for_api
api = NinjaAPI(title='Lithium Label API', version='1.0.0', urls_namespace='slips_api')
api = NinjaAPI(title='Lithium Labels', version='1.0.0', urls_namespace='slips_api')
# ─── Products ────────────────────────────────────────────

View File

@@ -1,6 +1,6 @@
const translations = {
'en': {
'app_title': 'Lithium | Print Label',
'app_title': 'Label Printer',
'data_entry': 'Data Entry',
'products': 'Products',
'print_queue': 'Print Queue',
@@ -49,7 +49,7 @@ const translations = {
'no_history': 'No print history'
},
'fa': {
'app_title': 'لیتیوم |‌ پرینت لیبل',
'app_title': 'پرینتر لیبل',
'data_entry': 'ثبت اطلاعات',
'products': 'محصولات',
'print_queue': 'صف چاپ',

View File

@@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}لیتیوم |‌ پرینت لیبل{% endblock %}</title>
<title>{% block title %}پرینتر لیبل{% endblock %}</title>
<link rel="icon" href="{% static 'lithium.png' %}" type="image/png">
<link rel="apple-touch-icon" href="{% static 'lithium.png' %}">
<link rel="preconnect" href="https://fonts.googleapis.com">
@@ -27,7 +27,7 @@
<div class="nav-container">
<a href="{% url 'entry' %}" class="nav-logo">
<img class="logo-icon" src="{% static 'lithium.png' %}" alt="" width="32" height="32">
<span class="logo-text" data-i18n="app_title">لیتیوم |‌ پرینت لیبل</span>
<span class="logo-text" data-i18n="app_title">پرینتر لیبل</span>
</a>
<div class="nav-links">
<a href="{% url 'entry' %}" class="nav-link {% block nav_entry_active %}{% endblock %}" data-i18n="data_entry">ثبت اطلاعات</a>

View File

@@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calibration — Lithium | Print Label</title>
<title>Calibration — Label Printer</title>
<link rel="stylesheet" href="{% static 'slips/css/label_print.css' %}">
<style id="calibration-vars">
{{ calibration_css|safe }}

View File

@@ -1,7 +1,7 @@
{% extends 'slips/base.html' %}
{% load static %}
{% block title %}Data Entry — Lithium | Print Label{% endblock %}
{% block title %}Data Entry — Label Printer{% endblock %}
{% block nav_entry_active %}active{% endblock %}
{% block content %}

View File

@@ -1,7 +1,7 @@
{% extends 'slips/base.html' %}
{% load static %}
{% block title %}Print Queue — Lithium | Print Label{% endblock %}
{% block title %}Print Queue — Label Printer{% endblock %}
{% block nav_print_active %}active{% endblock %}
{% block content %}

View File

@@ -1,7 +1,7 @@
{% extends 'slips/base.html' %}
{% load static %}
{% block title %}Products — Lithium | Print Label{% endblock %}
{% block title %}Products — Label Printer{% endblock %}
{% block nav_products_active %}active{% endblock %}
{% block content %}