Merge pull request 'Rename to Lithium Slip Manager and add brand icon' (#2) from cursor/rename-lithium-slip-manager into main
This commit was merged in pull request #2.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Product Slip Manager
|
# Lithium Slip Manager
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from ninja import NinjaAPI, Query
|
|||||||
from .models import Product, Order
|
from .models import Product, Order
|
||||||
from .schemas import ProductOut, ProductIn, OrderOut, OrderIn, OrderStatusIn
|
from .schemas import ProductOut, ProductIn, OrderOut, OrderIn, OrderStatusIn
|
||||||
|
|
||||||
api = NinjaAPI(title='Product Slip API', version='1.0.0', urls_namespace='slips_api')
|
api = NinjaAPI(title='Lithium Slip API', version='1.0.0', urls_namespace='slips_api')
|
||||||
|
|
||||||
|
|
||||||
# ─── Products ────────────────────────────────────────────
|
# ─── Products ────────────────────────────────────────────
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ from django.apps import AppConfig
|
|||||||
class SlipsConfig(AppConfig):
|
class SlipsConfig(AppConfig):
|
||||||
default_auto_field = 'django.db.models.BigAutoField'
|
default_auto_field = 'django.db.models.BigAutoField'
|
||||||
name = 'slips'
|
name = 'slips'
|
||||||
verbose_name = 'Product Slips'
|
verbose_name = 'Lithium Slips'
|
||||||
|
|||||||
BIN
slips/static/lithium.png
Normal file
BIN
slips/static/lithium.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 77 KiB |
@@ -65,6 +65,14 @@ body {
|
|||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logo-icon {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
object-fit: contain;
|
||||||
|
border-radius: 6px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.nav-links {
|
.nav-links {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
const translations = {
|
const translations = {
|
||||||
'en': {
|
'en': {
|
||||||
'app_title': 'Product Slip Manager',
|
'app_title': 'Lithium Slip Manager',
|
||||||
'data_entry': 'Data Entry',
|
'data_entry': 'Data Entry',
|
||||||
'print_queue': 'Print Queue',
|
'print_queue': 'Print Queue',
|
||||||
'calibrate': 'Calibrate',
|
'calibrate': 'Calibrate',
|
||||||
@@ -36,7 +36,7 @@ const translations = {
|
|||||||
'no_history': 'No print history'
|
'no_history': 'No print history'
|
||||||
},
|
},
|
||||||
'fa': {
|
'fa': {
|
||||||
'app_title': 'مدیریت برچسب محصول',
|
'app_title': 'مدیریت برچسب لیتیوم',
|
||||||
'data_entry': 'ثبت اطلاعات',
|
'data_entry': 'ثبت اطلاعات',
|
||||||
'print_queue': 'صف چاپ',
|
'print_queue': 'صف چاپ',
|
||||||
'calibrate': 'کالیبراسیون',
|
'calibrate': 'کالیبراسیون',
|
||||||
|
|||||||
@@ -4,7 +4,9 @@
|
|||||||
<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 %}Product Slip Manager{% endblock %}</title>
|
<title>{% block title %}Lithium Slip Manager{% 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">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet">
|
||||||
@@ -15,8 +17,8 @@
|
|||||||
<nav class="navbar">
|
<nav class="navbar">
|
||||||
<div class="nav-container">
|
<div class="nav-container">
|
||||||
<a href="{% url 'entry' %}" class="nav-logo">
|
<a href="{% url 'entry' %}" class="nav-logo">
|
||||||
<span class="logo-icon">🏭</span>
|
<img class="logo-icon" src="{% static 'lithium.png' %}" alt="" width="32" height="32">
|
||||||
<span class="logo-text" data-i18n="app_title">Product Slip Manager</span>
|
<span class="logo-text" data-i18n="app_title">Lithium Slip Manager</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">Data Entry</a>
|
<a href="{% url 'entry' %}" class="nav-link {% block nav_entry_active %}{% endblock %}" data-i18n="data_entry">Data Entry</a>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends 'slips/base.html' %}
|
{% extends 'slips/base.html' %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block title %}Data Entry — Product Slip Manager{% endblock %}
|
{% block title %}Data Entry — Lithium Slip Manager{% endblock %}
|
||||||
{% block nav_entry_active %}active{% endblock %}
|
{% block nav_entry_active %}active{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends 'slips/base.html' %}
|
{% extends 'slips/base.html' %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block title %}Print Queue — Product Slip Manager{% endblock %}
|
{% block title %}Print Queue — Lithium Slip Manager{% endblock %}
|
||||||
{% block nav_print_active %}active{% endblock %}
|
{% block nav_print_active %}active{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|||||||
Reference in New Issue
Block a user