Skip to content

Commit

Permalink
Initial commit 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
thrijith committed Jan 22, 2020
0 parents commit 209b864
Show file tree
Hide file tree
Showing 19 changed files with 5,890 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

[{*.json,*.yml}]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Editors
.idea

# Grunt
/node_modules/
none

# Sass
.sass-cache/

# OS X metadata
.DS_Store

# Windows junk
Thumbs.db

# Composer
/vendor/
339 changes: 339 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
rtCamp Google Embeds
=========================

[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)

This plugin allows adding preview for your Google Drive Documents right in your editor.

## Development Notes

##### Please run following commands from the root directory.

1. Please verify your code is in compliance to the Coding Standards used in this Project.
2. Run `composer phpcs filename` or `composer phpcs` to check for PHPCS errors/warnings.

#### Building Plugin assets

- Run ```npm install``` from repositories root to install all required dependencies.
- To build a production version run `npm run build`.
- While developing the plugin run `npm run dev` to build assets on file changes.
- If any string is added/updated, run `npm run language` to update the language file. ( Assumes availability of `wp i18n` command. )

## Does this interest you?

<a href="https://rtcamp.com/"><img src="https://rtcamp.com/wp-content/uploads/2019/04/[email protected]" alt="Join us at rtCamp, we specialize in providing high performance enterprise WordPress solutions"></a>
10 changes: 10 additions & 0 deletions assets/css/embeds.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.rt-google-doc-embed {
border: 1px solid #000;
text-align: center;

img {
border: 1px solid #eee;
margin: 15px auto;
display: block;
}
}
3 changes: 3 additions & 0 deletions assets/css/rt-google-embed-main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@charset "UTF-8";

@import "embeds";
Binary file added assets/img/no-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions build/rt-google-embed-main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.rt-google-doc-embed {
border: 1px solid #000;
text-align: center;
}

.rt-google-doc-embed img {
border: 1px solid #eee;
margin: 15px auto;
display: block;
}
23 changes: 23 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name" : "rtcamp/rt-google-embeds",
"description": "Allows adding preview for your Google Drive Documents right in your editor.",
"homepage" : "https://github.com/rtCamp/rt-google-embeds/",
"type" : "wordpress-plugin",
"license" : "GPL2.0",
"require-dev": {
"automattic/vipwpcs": "^2.0.0",
"wp-coding-standards/wpcs": "*",
"dealerdirect/phpcodesniffer-composer-installer": "*",
"phpcompatibility/phpcompatibility-wp": "*"
},
"authors": [
{
"name": "Thrijith Thankachan",
"email": "[email protected]"
}
],
"scripts": {
"phpcs": "\"./vendor/bin/phpcs\"",
"phpcbf": "\"./vendor/bin/phpcbf\""
}
}
Loading

0 comments on commit 209b864

Please sign in to comment.