markocupic / chronometry-bundle
耐力竞赛计时工具。
2.0.10
2022-06-15 18:47 UTC
Requires
- php: ^7.4|^8.0
- contao/core-bundle: ^4.13
- league/csv: ^8.0|^9.0
- markocupic/contao-component-bootstrap: ^5.1
- markocupic/contao-component-fontawesome-free: ^5.9
- markocupic/phpoffice-bundle: ^1.2
- dev-master
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.2.20
- 1.2.19
- 1.2.18
- 1.2.17
- 1.2.16
- 1.2.15
- 1.2.14
- 1.2.13
- 1.2.12
- 1.2.11
- 1.2.10
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
This package is auto-updated.
Last update: 2024-09-15 23:37:52 UTC
README
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
- vue.js
- Font Awesome 5 Free
- Bootstrap框架
- jQuery(必须在Contao后端主题中绑定)
- popper.js
- stupid-table表格排序器
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格式)