Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/notification reworked design #66

Closed
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extends @wordpress/browserslist-config
28 changes: 28 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

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

[*.php]
indent_style = tab

[*.txt]
trim_trailing_whitespace = false

[*.{md,json,yml}]
trim_trailing_whitespace = false

[*.json]
indent_style = tab
33 changes: 33 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* Set WordPress presets
*/

const eslintConfig = {
extends: ["plugin:@wordpress/eslint-plugin/recommended"],
globals: {
jQuery: true,
$: true,
},
rules: {
"padding-line-between-statements": [
"error",
{
blankLine: "always",
next: ["function", "const", "let", "var"],
prev: "return",
},
],
"max-len": ["error", { code: 160, tabWidth: 12 }],
"prettier/prettier": ["error", { endOfLine: "auto" }],
},
};

eslintConfig.parserOptions = {
ecmaVersion: 6,
env: { es6: true },
babelOptions: {
presets: [require.resolve("@wordpress/babel-preset-default")],
},
};

module.exports = eslintConfig;
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
.DS_Store
erikyo marked this conversation as resolved.
Show resolved Hide resolved
# ignore node dependency directories
node_modules/
vendor/

#ide settings
.idea/

# ignore log files and databases
*.log
*.sql
*.sqlite
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,24 @@
A feature plugin for WordPress, which aims to create a new (better) way to manage and deliver notifications to the relevant audience.

To get started, please take a look at our [project wiki](https://github.com/WordPress/wp-notify/wiki)

## Useful commands

In order to run the following commands, you need to have [Node.js](https://nodejs.org) (including `npm`)
erikyo marked this conversation as resolved.
Show resolved Hide resolved

* `npm i`: Installs local development dependencies.
* `npm serve`: Serve bundle at http://localhost:8887
* `npm start`: Watch scripts and styles or Serve @ http://localhost:8887
* `npm start:user-js`: Watch scripts
* `npm start:user-css`: Watch styles
* `npm build`: Build preview

### Structure
* includes/ui/notification-hub/assets - The work folder
* assets/html - here you will find the notices and the sidebar html
* assets/script - here for now you will find some scripts that has only the function to test the ui
* assets/css/notify.scss - the WP-Notify style (this plugin css)
* assets/css/wordpress.scss - The WordPress Admin style (will not be included in the future, but at the moment is needed for ui testing purpose)
* img/ - actually there is the favicon (without that there is an error in console)
* includes/ui/notification-hub/dist - Build folder

Binary file added docs/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions docs/index.html

Large diffs are not rendered by default.

Loading