Merge pull request 'Rename UI to Label Printer and cache pip builds' (#29) from cursor/label-printer-pip-cache into main

This commit was merged in pull request #29.
This commit is contained in:
2026-10-09 14:50:43 +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 WORKDIR /app
# Install dependencies # Install dependencies (BuildKit pip cache survives rebuilds)
COPY requirements.txt . 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 project
COPY . . 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. 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 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 ──────────────────────────────────────────── # ─── Products ────────────────────────────────────────────

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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