Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarpsvo committed Aug 15, 2022
0 parents commit c86c22a
Show file tree
Hide file tree
Showing 26 changed files with 41,815 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
root = true

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

[*.php]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
14 changes: 14 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": ["eslint:recommended", "plugin:vue/essential", "prettier"],
"globals": {
"Nova": true
},
"env": {
"browser": true,
"node": true
},
"rules": {
"vue/html-indent": ["error", 2],
"vue/custom-event-name-casing": "off"
}
}
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Path-based git attributes
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

# Ignore all test and documentation with "export-ignore".
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/.scrutinizer.yml export-ignore
/.styleci.yml export-ignore
/tests export-ignore
/.editorconfig export-ignore
/docs export-ignore
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/.idea
/.vscode
/vendor
/node_modules
composer.phar
composer.lock
phpunit.xml
.phpunit.result.cache
.DS_Store
Thumbs.db
yarn.lock
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 120,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"arrowParens": "avoid"
}
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] - 2022-08-11

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

Copyright (c) 2022 Outl1ne <info@outl1ne.com>

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.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Nova Tooltip Field

[![Latest Version on Packagist](https://img.shields.io/packagist/v/outl1ne/nova-tooltip-field.svg?style=flat-square)](https://packagist.org/packages/outl1ne/nova-tooltip-field)
[![Total Downloads](https://img.shields.io/packagist/dt/outl1ne/nova-tooltip-field.svg?style=flat-square)](https://packagist.org/packages/outl1ne/nova-tooltip-field)

This [Laravel Nova](https://nova.laravel.com/) package adds a tooltip field to Nova's arsenal of fields.

## Requirements

- `php: >=8.0`
- `laravel/nova: ^4.0`

## Installation

Install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```bash
composer require outl1ne/nova-tooltip-field
```

## Usage

```php
use Outl1ne\NovaTooltipField\Tooltip;

public function fields(Request $request) {
Tooltip::make('Content', 'content'),
}
```

## Credits

- [Tarvo Reinpalu](https://github.com/tarpsvo)

## License

Nova Tooltip Field is open-sourced software licensed under the [MIT license](LICENSE.md).
39 changes: 39 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "outl1ne/nova-tooltip-field",
"description": "A tooltip field for Laravel Nova.",
"keywords": [
"laravel",
"nova",
"tooltip",
"field",
"outl1ne"
],
"license": "MIT",
"require": {
"php": ">=8.0",
"laravel/nova": "^4.0"
},
"autoload": {
"psr-4": {
"Outl1ne\\NovaTooltipField\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Outl1ne\\NovaTooltipField\\FieldServiceProvider"
]
}
},
"config": {
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true,
"repositories": [
{
"type": "composer",
"url": "https://nova.laravel.com"
}
]
}
33 changes: 33 additions & 0 deletions dist/css/entry.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.o1-my-2 {
margin-top: 0.5rem;
margin-bottom: 0.5rem
}
.o1-mr-2 {
margin-right: 0.5rem
}
.o1-ml-2 {
margin-left: 0.5rem
}
.o1-flex {
display: flex
}
.o1-inline-flex {
display: inline-flex
}
.o1-cursor-pointer {
cursor: pointer
}
.o1-items-center {
align-items: center
}
.o1-justify-center {
justify-content: center
}
.o1-border {
border-width: 1px
}
.o1-text-red-500 {
--tw-text-opacity: 1;
color: rgb(239 68 68 / var(--tw-text-opacity))
}

1 change: 1 addition & 0 deletions dist/images/vendor/trumbowyg/dist/ui/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23,922 changes: 23,922 additions & 0 deletions dist/js/entry.js

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions dist/js/entry.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*!
* Sizzle CSS Selector Engine v2.3.6
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://js.foundation/
*
* Date: 2021-02-16
*/

/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/

/*!
* jQuery JavaScript Library v3.6.0
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2021-03-02T17:08Z
*/

/*!
* vuex v4.0.2
* (c) 2021 Evan You
* @license MIT
*/

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/**
* Trumbowyg v2.25.1 - A lightweight WYSIWYG editor
* Trumbowyg core file
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
* @license MIT
* @author Alexandre Demode (Alex-D)
* Twitter : @AlexandreDemode
* Website : alex-d.fr
*/
4 changes: 4 additions & 0 deletions dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"/js/entry.js": "/js/entry.js",
"/css/entry.css": "/css/entry.css"
}
Loading

0 comments on commit c86c22a

Please sign in to comment.