markocupic/chronometry-bundle

耐力竞赛计时工具。

安装: 75

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:contao-module

2.0.10 2022-06-15 18:47 UTC

README

Alt text

Frontend

Chronometry-bundle

为Ettiswil学校编写的耐力竞赛计时工具程序。该应用程序基于vue.js JavaScript框架,并可在本地XAMPP上运行。所有资源*均存储在模块的public目录中。

CSV

在“docs”目录中有一个示例CSV文件,可用于构建数据库。然后可以使用markocupic/import-from-csv-bundle将该文件导入数据库(tl_chronometry)。

页面模板

除了模块目录外,在src/Resources/contao/templates/frontend/fe_page_chronometry.html5中还有一个已为Bootstrap准备的页面模板。

文凭

可以通过模态窗口在颁奖仪式上打印出一份文凭(MS-Word文档)。

依赖关系

这些资源在模板中绑定,并位于src/Resources/public

XAMPP & 安装

在c:\xampp中安装XAMPP

调整php.ini

memory_limit=-1 # kein Limit

extension=intl # aktivieren
extension=gd # aktivieren
extension=fileinfo # aktivieren
extension=sodium # aktivieren

在C:\xampp\apache\conf\extra\httpd-vhosts.conf中配置虚拟主机

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/"
    ServerName localhost
    <Directory "C:/xampp/htdocs/">
	AllowOverride All
	Allow from All
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerName duathlon.local
    DocumentRoot "C:/xampp/htdocs/duathlon/web"
    ErrorLog "logs/duathlon-error.log"
    CustomLog "logs/duathlon-access.log" common
    <Directory "C:/xampp/htdocs/duathlon/web">
	AllowOverride All
	Allow from All
    </Directory>
</VirtualHost>

配置C:\Windows\System32\drivers\etc\hosts

127.0.0.1      duathlon.local

提示:务必以“作为管理员运行”模式重新启动XAMPP。

在phpmyadmin中创建一个数据库。

使用composer或通过http://duathlon.local/contao-manager.phar.php在本地安装Contao

安装附加模块

require markocupic/chronometry-bundle
require markocupic/export_table
require markocupic/import-from-csv-bundle

Contao设置

  • 在Contao中登录 http://duathlon.local/contao
  • 创建一个主题并在其中添加布局(单列,无头部和页脚,启用jQuery)
  • 创建时间测量模块
  • 创建一个页面并在其中绑定模块
  • 使用markocupic/import-from-csv-bundle将起跑名单导入tl_chronometry
  • 使用markocupic/export_table进行表格导出(日期字段将自动从Unix转换为d.m.Y格式)