Changeset 3695
- Timestamp:
- 07/19/2016 07:42:02 PM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
- Files:
-
- 32 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/.jshintrc
r3193 r3695 4 4 "eqeqeq": true, 5 5 "eqnull": true, 6 "es 3": true,6 "esversion": 6, 7 7 "expr": true, 8 8 "immed": true, -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/Gruntfile.js
r3676 r3695 1 /*global module:false*/ 2 module.exports = function(grunt) { 1 /* global module:false, require:function */ 2 3 var webpack = require( 'webpack' ), 4 webpackConfig = require( './webpack.config' ); 5 6 module.exports = function( grunt ) { 3 7 grunt.loadNpmTasks('grunt-postcss'); 4 8 5 6 9 grunt.initConfig({ 10 webpack: { 11 options: webpackConfig, 12 build: { 13 plugins: webpackConfig.plugins.concat( 14 new webpack.optimize.DedupePlugin(), 15 new webpack.optimize.UglifyJsPlugin( { 16 compress: { warnings: false } 17 } ) 18 ), 19 output: { 20 path: 'js/' 21 } 22 }, 23 'build-dev': { 24 debug: true 25 }, 26 'watch-dev': { 27 debug: true, 28 watch: true, 29 keepalive: true 30 } 31 }, 7 32 postcss: { 8 33 options: { … … 31 56 files: [ 32 57 'Gruntfile.js', 33 'js/**/*.js' 58 'js/**/*.js', 59 '!js/theme.js' 34 60 ], 35 61 options: grunt.file.readJSON('.jshintrc') … … 107 133 }, 108 134 watch: { 109 js : {135 jshint: { 110 136 files: ['<%= jshint.files %>'], 111 tasks: ['jshint'] 137 tasks: ['webpack:build-dev', 'jshint'] 138 }, 139 webpack: { 140 files: ['js/client/**'], 141 tasks: ['webpack:build-dev'] 112 142 }, 113 143 css: { … … 118 148 files: ['**/style.css'], 119 149 tasks: ['postcss', 'rtlcss:dynamic'] 150 }, 151 livereload: { 152 options: { livereload: true }, 153 files: [ 'css/style.css' ] 120 154 } 155 121 156 } 122 157 }); … … 124 159 grunt.loadNpmTasks('grunt-sass'); 125 160 grunt.loadNpmTasks('grunt-rtlcss'); 161 grunt.loadNpmTasks('grunt-webpack'); 126 162 grunt.loadNpmTasks('grunt-contrib-jshint'); 127 163 grunt.loadNpmTasks('grunt-contrib-watch'); 128 164 129 165 grunt.registerTask('default', ['jshint', 'sass', 'rtlcss:dynamic']); 166 grunt.registerTask('build', ['webpack:build']); 167 130 168 }; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style-rtl.css
r3676 r3695 1390 1390 .main-navigation ul { 1391 1391 display: inline-block; 1392 font-size: 0; 1392 1393 } 1393 1394 .main-navigation ul li { 1394 1395 border: 0; 1395 1396 display: inline-block; 1397 font-size: 16px; 1398 font-size: 1rem; 1396 1399 margin-left: 16px; 1397 1400 margin-left: 1rem; … … 1851 1854 .site-header .search-form { 1852 1855 display: inline-block; 1856 font-size: 0; 1853 1857 width: 100%; 1854 1858 } … … 1869 1873 -webkit-border-radius: 2px 0 0 2px; 1870 1874 border-radius: 2px 0 0 2px; 1875 font-size: 16px; 1876 font-size: 1rem; 1871 1877 display: none; 1872 margin-right: -6px;1873 1878 vertical-align: bottom; 1874 1879 } … … 1936 1941 box-shadow: none; 1937 1942 display: block; 1938 font-size: inherit; 1943 font-size: 16px; 1944 font-size: 1rem; 1939 1945 margin: 0 auto; 1940 1946 max-width: 100%; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style.css
r3676 r3695 1390 1390 .main-navigation ul { 1391 1391 display: inline-block; 1392 font-size: 0; 1392 1393 } 1393 1394 .main-navigation ul li { 1394 1395 border: 0; 1395 1396 display: inline-block; 1397 font-size: 16px; 1398 font-size: 1rem; 1396 1399 margin-right: 16px; 1397 1400 margin-right: 1rem; … … 1851 1854 .site-header .search-form { 1852 1855 display: inline-block; 1856 font-size: 0; 1853 1857 width: 100%; 1854 1858 } … … 1869 1873 -webkit-border-radius: 0 2px 2px 0; 1870 1874 border-radius: 0 2px 2px 0; 1875 font-size: 16px; 1876 font-size: 1rem; 1871 1877 display: none; 1872 margin-left: -6px;1873 1878 vertical-align: bottom; 1874 1879 } … … 1936 1941 box-shadow: none; 1937 1942 display: block; 1938 font-size: inherit; 1943 font-size: 16px; 1944 font-size: 1rem; 1939 1945 margin: 0 auto; 1940 1946 max-width: 100%; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
r3559 r3695 82 82 'currentPlugin' => is_singular( 'plugin' ) ? get_queried_object()->post_name : '', 83 83 ) ); 84 85 // wp_enqueue_script( 'wporg-plugins-client', get_template_directory_uri() . '/js/theme.js', array(), false, true ); 86 wp_localize_script( 'wporg-plugins-client', 'app_data', array( 87 'api_url' => untrailingslashit( rest_url() ), 88 'nonce' => wp_create_nonce( 'wp_rest' ), 89 ) ); 90 84 91 } 85 92 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\scripts' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/header.php
r3456 r3695 25 25 <a class="skip-link screen-reader-text" href="#main"><?php esc_html_e( 'Skip to content', 'wporg-plugins' ); ?></a> 26 26 27 <header id="masthead" class="site-header" role="banner"> 28 <div class="site-branding"> 29 <?php if ( is_front_page() && is_home() ) : ?> 30 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php _ex( 'Plugins','Site title', 'wporg-plugins' ); ?></a></h1> 31 <?php else : ?> 32 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php _ex( 'Plugins','Site title', 'wporg-plugins' ); ?></a></p> 33 <?php endif; ?> 27 <div id="content" class="site-content"> 28 <header id="masthead" class="site-header" role="banner"> 29 <div class="site-branding"> 30 <?php if ( is_front_page() && is_home() ) : ?> 31 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php _ex( 'Plugins','Site title', 'wporg-plugins' ); ?></a></h1> 32 <?php else : ?> 33 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php _ex( 'Plugins','Site title', 'wporg-plugins' ); ?></a></p> 34 <?php endif; ?> 34 35 35 <?php if ( is_home() ) : ?> 36 <p class="site-description"> 37 <?php 38 /* Translators: Total number of plugins. */ 39 printf( __( 'Extend your WordPress experience with %s plugins.', 'wporg-plugins' ), number_format_i18n( wp_count_posts( 'plugin' )->publish ) ); 40 ?> 41 </p> 42 <?php get_search_form(); ?> 43 <?php else : ?> 44 <nav id="site-navigation" class="main-navigation" role="navigation"> 45 <button class="menu-toggle dashicons dashicons-arrow-down-alt2" aria-controls="primary-menu" aria-expanded="false" aria-label="<?php esc_attr_e( 'Primary Menu', 'wporg-plugins' ); ?>"></button> 46 <div id="primary-menu" class="menu"> 47 <ul> 48 <?php 49 foreach ( $menu_items as $path => $text ) : 50 $class = false !== strpos( $_SERVER['REQUEST_URI'], $path ) ? 'class="active" ' : ''; 51 ?> 52 <li class="page_item"><a <?php echo $class; ?>href="<?php echo esc_url( home_url( $path ) ); ?>"><?php echo esc_html( $text ); ?></a></li> 53 <?php endforeach; ?> 54 <li><?php get_search_form(); ?></li> 55 </ul> 56 </div> 57 </nav><!-- #site-navigation --> 58 <?php endif; ?> 59 </div><!-- .site-branding --> 60 </header><!-- #masthead --> 61 62 <div id="content" class="site-content"> 36 <?php if ( is_home() ) : ?> 37 <p class="site-description"> 38 <?php 39 /* Translators: Total number of plugins. */ 40 printf( __( 'Extend your WordPress experience with %s plugins.', 'wporg-plugins' ), number_format_i18n( wp_count_posts( 'plugin' )->publish ) ); 41 ?> 42 </p> 43 <?php get_search_form(); ?> 44 <?php else : ?> 45 <nav id="site-navigation" class="main-navigation" role="navigation"> 46 <button class="menu-toggle dashicons dashicons-arrow-down-alt2" aria-controls="primary-menu" aria-expanded="false" aria-label="<?php esc_attr_e( 'Primary Menu', 'wporg-plugins' ); ?>"></button> 47 <div id="primary-menu" class="menu"> 48 <ul> 49 <?php 50 foreach ( $menu_items as $path => $text ) : 51 $class = false !== strpos( $_SERVER['REQUEST_URI'], $path ) ? 'class="active" ' : ''; 52 ?> 53 <li class="page_item"><a <?php echo $class; ?>href="<?php echo esc_url( home_url( $path ) ); ?>"><?php echo esc_html( $text ); ?></a></li> 54 <?php endforeach; ?> 55 <li><?php get_search_form(); ?></li> 56 </ul> 57 </div> 58 </nav><!-- #site-navigation --> 59 <?php endif; ?> 60 </div><!-- .site-branding --> 61 </header><!-- #masthead --> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/package.json
r3676 r3695 5 5 "author": "wordpressdotorg", 6 6 "license": "GPL-2.0", 7 "main": "index.php", 8 "scripts": { 9 "test": "echo \"Error: no test specified\" && exit 1" 10 }, 7 11 "repository": { 8 12 "type": "svn", … … 11 15 "devDependencies": { 12 16 "autoprefixer": "^6.3.6", 17 "babel-core": "^6.10.4", 18 "babel-loader": "^6.2.4", 19 "babel-preset-es2015": "^6.9.0", 20 "babel-preset-react": "^6.11.1", 13 21 "grunt": "^1.0.1", 14 22 "grunt-contrib-jshint": "^1.0.0", … … 16 24 "grunt-postcss": "^0.8.0", 17 25 "grunt-rtlcss": "^2.0.1", 18 "grunt-sass": "^1.2.0" 26 "grunt-sass": "^1.2.0", 27 "grunt-webpack": "^1.0.11", 28 "history": "^2.0.0", 29 "jquery": "^3.1.0", 30 "react": "^15.2.1", 31 "react-dom": "^15.2.1", 32 "react-redux": "^4.4.5", 33 "react-router": "^2.5.2", 34 "react-router-redux": "^4.0.5", 35 "redux": "^3.5.2", 36 "redux-thunk": "^2.1.0", 37 "underscore": "^1.8.3", 38 "webpack": "^1.13.1", 39 "webpack-dev-server": "^1.14.1" 19 40 } 20 41 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/navigation/_menus.scss
r3676 r3695 130 130 ul { 131 131 display: inline-block; 132 font-size: 0; 132 133 133 134 li { 134 135 border: 0; 135 136 display: inline-block; 137 @include font-size( ms-unitless( ms(0) ) ); 136 138 margin-right: 16px; 137 139 margin-right: 1rem; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/site/_header.scss
r3676 r3695 102 102 .search-form { 103 103 display: inline-block; 104 font-size: 0; 104 105 width: 100%; 105 106 … … 116 117 border-left: none; 117 118 border-radius: 0 2px 2px 0; 119 @include font-size( ms-unitless( ms(0) ) ); 118 120 display: none; 119 margin-left: -6px;120 121 vertical-align: bottom; 121 122 … … 176 177 box-shadow: none; 177 178 display: block; 178 font-size: inherit;179 @include font-size( ms-unitless( ms(0) ) ); 179 180 margin: 0 auto; 180 181 max-width: 100%;
Note: See TracChangeset
for help on using the changeset viewer.