trexima/cv 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

trexima/cv

最新稳定版本:1.9.1

Composer 安装命令:

composer require trexima/cv

包简介

Bundle provides form for creating CV in european format.

关键字:

README 文档

README

Bundle provides form for creating CV in european format. It also optionally embeds required JS and predefined CSS. CV can be saved to database, exported to DOC or PDF format.

Installation

Add to composer.json:

composer require trexima/european-cv

JS and CSS libs:

yarn add bootstrap
yarn add @fortawesome/fontawesome-free
yarn add jquery
yarn add jquery-ui
yarn add blueimp-file-upload
yarn add sortablejs
yarn add jquery.dirtyforms
yarn add select2
yarn add select2-bootstrap-theme
yarn add parsleyjs
yarn add flatpickr
yarn add bs-custom-file-input

NOTE: For required external libs include:

./vendor/trexima/european-cv-bundle/Resources/assets/css/shared.scss

Installing assets with Webpack encore:

Encore.addEntry('trexima-european-cv', [
    './vendor/trexima/european-cv/Resources/assets/js/main.js',
    './vendor/trexima/european-cv/Resources/public/build/trexima-european-cv.css'
])

Fucking jquery.dirtyforms hack(webpack.config.js):

const config = Encore.getWebpackConfig();
// Required because of bug in jquery.dirtyforms https://github.com/snikch/jquery.dirtyforms/issues/82
config.externals = {
    window: 'window',
    document: 'document'
};

// export the final configuration
module.exports = config;

Add CSS and JS to Twig templates:

{% block stylesheets %}
    {{ encore_entry_link_tags('trexima-european-cv') }}
    {{ parent() }}
{% endblock %}

{% block javascripts %}
    {{ encore_entry_script_tags('trexima-european-cv') }}
    {{ parent() }}
{% endblock %}

Configuration

Add upload route to global configuration:

trexima_european_cv_annotations:
    resource: '@TreximaEuropeanCvBundle/Controller/'
    type:     annotation

Route name for AJAX images uploading:

trexima_european_cv_bundle_image

Define entity that will be in relation with european CV and upload dir:

trexima_european_cv:
  upload_url: '/uploads/european-cv/'
  upload_dir: '%kernel.project_dir%/public/uploads/european-cv/'
  user_class: App\Entity\User

trexima_european_cv.yaml

NOTE: Don't forget to update Doctrine schema.

Translations

If you wish to use default texts provided in this bundle, you have to make sure you have translator enabled in your config.

framework:
    translator: ~

统计信息

  • 总下载量: 2.15k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固