Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
Nearata committed Sep 6, 2020
0 parents commit 89fa687
Show file tree
Hide file tree
Showing 17 changed files with 4,816 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
vendor
composer.lock
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.0] - 2020-09-06

- First release
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 William Di Cicco

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copy Code to Clipboard

> A [Flarum](https://flarum.org) extension that allows the user to easly copy the text inside the code tag.
![Imgur](https://i.imgur.com/ngRTa7P.png)

## Installation

```sh
composer require nearata/flarum-ext-copy-code-to-clipboard
```

## Updating

```sh
composer update nearata/flarum-ext-copy-code-to-clipboard
php flarum cache:clear
```

## License

Distributed under the MIT license. See `LICENSE` for more information.

## Contributing

1. Fork it
2. Commit your changes
3. Push to the branch
4. Create a new Pull Request
40 changes: 40 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "nearata/flarum-ext-copy-code-to-clipboard",
"description": "Allows the user to easly copy the text inside the code tag.",
"keywords": [
"flarum",
"copy",
"code",
"clipboard"
],
"type": "flarum-extension",
"license": "MIT",
"require": {
"flarum/core": "^0.1.0-beta.13"
},
"authors": [
{
"name": "William Di Cicco",
"email": "[email protected]",
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"Nearata\\CopyCodeToClipboard\\": "src/"
}
},
"extra": {
"flarum-extension": {
"title": "Copy Code To Clipboard",
"icon": {
"name": "far fa-copy",
"backgroundColor": "#2e86f2",
"color": "#fff"
}
},
"flagrow": {
"discuss": ""
}
}
}
12 changes: 12 additions & 0 deletions extend.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Nearata\CopyCodeToClipboard;

use Flarum\Extend;

return [
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/resources/less/forum.less'),
new Extend\Locales(__DIR__ . '/resources/locale')
];
2 changes: 2 additions & 0 deletions js/dist/forum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/dist/forum.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/forum.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/forum';
Loading

0 comments on commit 89fa687

Please sign in to comment.