源代码/rodo模块

Rodo

1.0.1 2021-12-16 13:02 UTC

This package is auto-updated.

Last update: 2024-09-16 19:06:40 UTC


README

Latest Version on Packagist Total Downloads Build Status StyleCI

rodo服务

安装

通过Composer

$ composer require zdrojowa/rodo-module

NPM必需

"intl-tel-input": "^17.0.13",

使用

  • 在webpack.mix.js中添加
mix.module('RodoModule', 'vendor/zdrojowa/rodo-module');
  • 在config/selene.php中添加模块RodoModule
'modules' => [
    RodoModule::class,
],

'rodo' => [
        'email' => email,
        'username' => user name for RODO service,
        'password' => password for RODO service,
        'url' => url to RODO service,
        'source' => source in RODO service,
        'mail_title' => Title for email,
        'consents' => [
            'phone' => [id of consent in RODO service],
            'email' => [id of consent in RODO service]
        ]
    ],
  • 在config/app.php中添加提供者RodoModule
'providers' => [
    RodoModuleServiceProvider::class,
],
  • 在resources/lang/{lang}/rodo.php中添加RodoModule翻译以用于弹出窗口
<?php

return [
    'A problem occured' => 'A problem occured',
    'address' => 'Comapny address',
    'after' => 'after',
    'before' => 'before',
    'Choose' => 'Choose',
    'Choose the contact form' => 'Choose the contact form',
    'Correct the field' => 'Correct the field',
    'email' => 'email',
    'Email contact' => 'E-mail contact',
    'message' => 'Message',
    'Message sent successfully' => 'Message sent successfully',
    'Name and Surname' => 'Name & Surname',
    'Our advisor will contact you' => 'Our advisor will contact you',
    'Phone' => 'Phone',
    'phone' => 'phone',
    'Phone contact' => 'Phone contact',
    'Phone in hours' => 'Phone in hours',
    'Phone number' => 'Phone number',
    'phone_link' => 'link to phone',
    'Please try again later or directly' => 'Please try again later or directly',
    'required' => 'Required',
    'send message' => 'Send message',
    'We will contact you' => 'We will contact you',
    'phone_consent' => 'Phone consent',
    'email_consent' => 'Email consent',
];
  • 添加到基本视图以显示弹出窗口
<link rel="stylesheet" href="{{ asset('vendor/css/RodoModule.css') }}">
@include('RodoModule::popup', ['key' => 'GoogleEnterpriseKey'])
<script src="{{ mix('vendor/js/RodoModule.js') }}"></script>

变更日志

请参阅变更日志以获取最近更改的更多信息。

测试

$ composer test

贡献

请参阅contributing.md以获取详细信息和待办事项列表。

安全性

如果您发现任何与安全性相关的问题,请通过作者的电子邮件而不是使用问题跟踪器来报告。

鸣谢

许可证

许可证。请参阅许可证文件以获取更多信息。