Commit Graph

2345 Commits

Author SHA1 Message Date
Michael W. Delaney
230f194855 Update filters.php 2018-08-08 09:55:54 -04:00
Michael W. Delaney
28710faf2f Update filters.php 2018-08-08 08:51:00 -04:00
Ben
b912090139 Extract logic from search form template
This removes all logic from the search form Blade template, and extracts
it to the "Controller" level via Sage's filter system. It also adds a
global 'app' filter to hook into, so that the search form data will be
served on every page.
2018-08-06 13:06:34 -07:00
MWDelaney
13b0875bdc Add text domain 2018-08-05 21:15:08 -04:00
MWDelaney
f1cb3a1ef0 Remove gross WPCS 2018-08-05 21:06:46 -04:00
MWDelaney
0984d82b36 Add searchform partial and function to replace (and maintain) default WordPress functionality 2018-08-05 12:07:32 -04:00
Brandon
0eb23162b3 Change language_attributes() to get_language_attributes() 2018-07-31 17:25:45 -05:00
Daniel Roe
cc349672ca Fix missing comment-reply JS (#2085) 2018-07-18 16:37:51 -06:00
Nathan Knowler
9cce28990f Add support for preset specific Webpack config (#2083) 2018-07-17 10:58:16 -07:00
béla
fe6875f0ed missing semicolon 2018-07-02 00:22:37 +02:00
Tor Morten Jensen
e3541fb445 Fix comma dangle lint error 2018-06-20 14:50:43 +02:00
Tor Morten Jensen
dbabd4387a Rename to event 2018-06-20 14:48:28 +02:00
Tor Morten Jensen
ede8c3177b Dispatch event when firing routes
It is especially neat when importing the scripts from the parent theme in a child theme. In one of my themes I do it like this:

```js
// routes.js
import home from './routes/home'

export default {
    home: {
      init() {
        console.log('Home route fired.')
      }
    }
}
```

  ```js
// main.js
/**
 * Parent Themes Script
 */
import '../../../../core-theme/resources/assets/scripts/main';

/**
 * Internal modules
 */
import routes from './routes'

/**
 * Hook in to the parent themes router
 */
document.addEventListener('routed', e => {
  let route = e.detail.route,
    fn = e.detail.fn;

  if (routes[route] && typeof routes[route][fn] === 'function') {
    routes[route][fn]();
  }
});
```
2018-06-20 14:08:10 +02:00
Jason Baciulis
e8748173d9 Add uglifyjs plugin (#2070)
* Add uglifyjs plugin and replace -p flag with --env.production
* Add uglifyjs plugin
* Configure UglifyJsPlugin to drop console and prevent eslint error
* Turn off no-console rule because uglifyjs plugin drops it in prod
2018-06-16 08:33:41 -07:00
Ben Word
fd54c09c8f Merge pull request #2078 from knowler/enable-sass-comments
Enable Sass comments and run prefixing before minification
2018-06-11 11:05:12 -06:00
Nathan Knowler
04362989b6 Add missing trailing commas in f4d8342
Forgot to lint.
2018-06-09 10:34:55 -06:00
Nathan Knowler
33c81a9c72 Run autoprefixer before minification 2018-06-09 09:49:34 -06:00
Nathan Knowler
f4d834214a Enable source comments in Sass 2018-06-09 09:49:08 -06:00
Rhys Braunschweig
a9331c54b3 Normalize and enforce single quotes in styles
- Replace stylelint property in package.json with .stylelintrc.js
- Add string-quotes stylelint rule
- Fix quotes
2018-05-29 12:12:21 +02:00
Rhys Braunschweig
175066e992 Normalize and enforce single quotes in scripts
- Add quotes and semi rules to ESLint
- Fix quotes and semicolons
2018-05-29 12:11:44 +02:00
Ben Word
44a7ad3991 Merge pull request #2075 from E-VANCE/master
Proposal: Set removeViewBox to 'false' in webpack's optimization settings
2018-05-28 19:20:06 -06:00
Henning Orth
ecf1a237c1 Fix travis CI build error (missing trailing comma) 2018-05-28 16:50:49 +02:00
Henning Orth
107747f4a8 Tweaked SVGO settings
Disable removal of the SVG viewBox by default to improve compatibility. See this Discourse thread: https://discourse.roots.io/t/svg-size-change-upon-yarn-build-production/12320
2018-05-28 16:44:12 +02:00
Ben Word
5c318f9494 Merge pull request #2068 from kimhf/template-admin-compatibility
Make template() compatible with wp admin
2018-05-10 09:02:30 -06:00
Kim Helge Frimanslund
85db2c777a Make template() compatible with wp admin 2018-05-06 13:42:31 +02:00
Ben Word
a7a1224427 Merge pull request #2066 from roots/9.0.1
9.0.1
2018-04-30 12:52:11 -06:00
Ben Word
8891658a7a 9.0.1 2018-04-30 12:44:52 -06:00
Ben Word
3d5932f4d6 Merge pull request #2065 from roots/bootstrap-4.1.1
Update to Bootstrap 4.1.1
2018-04-30 12:42:32 -06:00
Ben Word
2fa7546606 Update to Bootstrap 4.1.1 2018-04-30 12:33:53 -06:00
Ben Word
b04abbdf7d Merge pull request #2063 from valentinocossar/remove-whitespace
Remove useless whitespace
2018-04-30 08:11:51 -06:00
Valentino Cossar
c93369b912 Remove useless whitespace 2018-04-27 15:50:26 +02:00
Ben Word
443057361c Merge pull request #2062 from roots/auto-detect-proxyurl-scheme
Auto-detect proxyUrl scheme
2018-04-25 15:57:46 -06:00
Ben Word
e6c7d53bbc Auto-detect scheme 2018-04-25 15:37:28 -06:00
Ben Word
634aec9641 Close #2028 - Increase priority on comments_template filter 2018-04-25 12:18:52 -06:00
Ben Word
d3d45d5901 Merge pull request #1980 from dmgawel/patch-1
Update template hierarchy
2018-04-25 12:16:01 -06:00
Ben Word
157a6c90e0 Remove Font Awesome reference [ci skip] 2018-04-25 12:09:14 -06:00
Ben Word
cd32145f08 Merge pull request #2032 from juniorgarcia/master
Added support to .otf fonts
2018-04-25 12:07:12 -06:00
Ben Word
5ab95bdf3a Merge pull request #2061 from roots/laravel-5.6
Bump to Laravel 5.6
2018-04-25 12:05:01 -06:00
Ben Word
dd36298877 Bump sage-lib 2018-04-25 11:54:08 -06:00
Ben Word
1cb9268040 Close #1962 - Bump to Laravel 5.6 2018-04-25 11:50:58 -06:00
Ben Word
10eba0fc2d Merge pull request #2060 from ttamnedlog/remove-php-shorthand
Remove php blade shorthand
2018-04-22 22:11:56 -06:00
Matt Golden
473729c4ea Remove php blade shorthand 2018-04-18 19:20:06 -05:00
Ben Word
634c03d589 Stable vs dev install messaging, ref https://github.com/roots/docs/issues/140 [ci skip] 2018-04-12 20:10:43 -06:00
Ben Word
a474de5b88 Update some dependencies 2018-04-12 19:56:22 -06:00
Ben Word
ab8b4a7d0d Merge pull request #2056 from roots/bootstrap-4.1.0
Bootstrap 4.1.0
2018-04-12 19:46:05 -06:00
Ben Word
57024f1b86 Update CHANGELOG [ci skip] 2018-04-12 19:44:28 -06:00
Ben Word
74df7c3410 Bootstrap 4.1.0 2018-04-12 19:39:22 -06:00
Ben Word
d360a3bb02 Remove run 👀 [ci skip] 2018-04-12 19:27:31 -06:00
Ben Word
3ffe1728e7 Merge pull request #2055 from MWDelaney/master
New Sage primary purple
2018-04-12 19:08:59 -06:00
Michael W. Delaney
72d5c876ec New Sage primary purple 2018-04-12 20:40:22 -04:00