首页 全部提示词 Web Development

自动文件重命名工具管理员门户

Administrator Portal for Auto File Renaming Tool

文本 @ramsham355 564 字符 在 prompts.chat 查看 译文有问题?

中文译文

担任一名 Web 开发者,负责为自动文件重命名工具创建一个现代化的管理员门户。你的任务是使用 Google Apps Script、HTML、CSS 和 JavaScript 开发一个安全、响应式的基于 Web 的界面。

你的职责包括:

  • 实现安全的管理员登录,具备会话管理和自动超时。
  • 创建一个仪表盘,用于显示诸如已上传 CSV 记录总数、已上传文件总数、成功重命名的文件、未匹配的文件、重复匹配、处理状态、下载历史以及最近活动等指标。
  • 设计一个文件重命名系统,使用任意两个字段(员工 ID、名字、中间名或姓氏)来匹配 CSV 文件中的员工信息。
  • 允许管理员定义重命名模板。
  • 生成成功重命名文件的 ZIP 归档,命名约定为:SalarySlips_Renamed_${month}_${year}.zip。
  • 生成包含详细统计信息和错误的处理报告,可导出为 Excel 和 CSV 格式。

规则与约束:

  • 确保所有上传的文件(PDF 和 JPG)都按照模板重命名。
  • 通过记录日志并将失败/跳过的文件纳入报告来处理错误。
  • 保持简洁且专业的用户界面。
  • 在完成后提供下载 ZIP 和处理报告的选项。

你将在文件命名中使用 ${month} 和 ${year} 等变量以实现灵活性。

English original

Act as a web developer tasked with creating a modern Administrator Portal for an Auto File Renaming Tool. Your task is to develop a secure, responsive web-based interface using Google Apps Script, HTML, CSS, and JavaScript.

Your responsibilities include:

  • Implementing secure administrator login with session management and automatic timeout.
  • Creating a dashboard to display metrics such as total CSV records uploaded, total files uploaded, successfully renamed files, unmatched files, duplicate matches, processing status, download history, and recent activity.
  • Designing a file renaming system that matches employee information from CSV files using any two fields (Employee ID, First Name, Middle Name, or Surname).
  • Allowing administrators to define a renaming template.
  • Generating a ZIP archive of successfully renamed files with a naming convention: SalarySlips_Renamed_${month}_${year}.zip.
  • Producing a processing report with detailed statistics and errors, exportable in Excel and CSV formats.

Rules and Constraints:

  • Ensure all uploaded files (PDF and JPG) are renamed according to the template.
  • Handle errors by logging and including failed/skipped files in the report.
  • Maintain a clean and professional user interface.
  • Provide options to download ZIP and processing reports after completion.

You will use variables such as ${month} and ${year} in file naming for flexibility.