Skip to content

Commit

Permalink
update references to moved assets folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tn3rb committed Nov 13, 2019
1 parent 53d475c commit aff35e0
Show file tree
Hide file tree
Showing 15 changed files with 448 additions and 54 deletions.
2 changes: 1 addition & 1 deletion assets/ZZZ/data/model/attendee/test/index.js
Expand Up @@ -101,4 +101,4 @@ describe( 'getQueryString', () => {
} );
} );

// location: assets/src/data/model/attendee/test/index.js
// location: assets/ZZZ/data/model/attendee/test/index.js
2 changes: 1 addition & 1 deletion assets/ZZZ/data/model/registration/test/index.js
Expand Up @@ -61,4 +61,4 @@ describe( 'getQueryString', () => {
} );
} );

// location: assets/src/data/model/registration/test/index.js
// location: assets/ZZZ/data/model/registration/test/index.js
2 changes: 1 addition & 1 deletion bin/css-builder/css-builder.js
Expand Up @@ -15,7 +15,7 @@ const getIndexPaths = require( './get-index-paths' );
// constants;
const DEMO_TEMPLATES_PATH = path.resolve( __dirname, 'demo-templates' );
const CSS_TEMPLATES_PATH = path.resolve( __dirname, 'css-templates' );
const STYLES_DIRECTORY = path.resolve( __dirname, '../../assets/src/components/ui/styles' );
const STYLES_DIRECTORY = path.resolve( __dirname, '../../assets/ZZZ/components/ui/styles' );
const { readFile, parseCssTemplate, writeFile } = fileUtils;

// @todo eventually the themes will be looped through, but for now we're just
Expand Down
2 changes: 1 addition & 1 deletion bin/css-builder/get-css-files.js
Expand Up @@ -2,7 +2,7 @@ const fs = require( 'fs' );
const path = require( 'path' );
const { overEvery } = require( 'lodash' );

const STYLES_DIRECTORY = path.resolve( __dirname, '../../assets/src/components/ui/styles' );
const STYLES_DIRECTORY = path.resolve( __dirname, '../../assets/ZZZ/components/ui/styles' );
let directory = STYLES_DIRECTORY;

/**
Expand Down
2 changes: 1 addition & 1 deletion bin/css-builder/get-index-paths.js
Expand Up @@ -2,7 +2,7 @@ const path = require( 'path' );
const getCssFiles = require( './get-css-files' );
const chalk = require( 'chalk' );

const STYLES_DIRECTORY = path.resolve( __dirname, '../../assets/src/components/ui/styles' );
const STYLES_DIRECTORY = path.resolve( __dirname, '../../assets/ZZZ/components/ui/styles' );
const pathRegex = new RegExp( '\\' + path.sep, 'g' );

/**
Expand Down
Expand Up @@ -36,7 +36,7 @@ If provided, used as the label text for the select input.

## Usage

**Note**: If you plan on exposing something wrapping this component as a component itself on `eejs.components` (this will be the case if you are adding your new component to the Event Espresso `assets/src/components` folder), then import this function directly via relative path.
**Note**: If you plan on exposing something wrapping this component as a component itself on `eejs.components` (this will be the case if you are adding your new component to the Event Espresso `assets/ZZZ/components` folder), then import this function directly via relative path.

This function can be utilized one of two ways:

Expand Down
Expand Up @@ -49,7 +49,7 @@ This informs what model the incoming modelEntities are for. This should corresp

### mapOptionsCallback

This should be a function that converts incoming modelEntities into an array of option objects usable by the react-select component. By default, this is the built-in [`buildOptions`](../../../../../assets/src/components/form/model/base/build-options.js) callback and that can be used as a reference for how any custom function should behave.
This should be a function that converts incoming modelEntities into an array of option objects usable by the react-select component. By default, this is the built-in [`buildOptions`](../../../../../assets/ZZZ/components/form/model/base/build-options.js) callback and that can be used as a reference for how any custom function should behave.

- Type: `Function`
- Required: No
Expand Down
Expand Up @@ -59,7 +59,7 @@ Contains default properties used for the Status model REST request.

### getQueryString

This is a function that returns the queryString used to retrieve the Status model data. It defaults to [statusModel.getQueryString](../../../../../assets/src/data/model/status/index.js).
This is a function that returns the queryString used to retrieve the Status model data. It defaults to [statusModel.getQueryString](../../../../../assets/ZZZ/data/model/status/index.js).

- Type: `Function`
- Required: No
Expand Down
2 changes: 1 addition & 1 deletion docs/AA--Javascript-in-EE/eejs/model/README.md
Expand Up @@ -94,4 +94,4 @@ Various model specific functions/interfaces. In many cases these are composed f
| [`ticketModel`](./ticket/README.md) | A module containing all model related interfaces for the Ticket model.
| [`checkInModel`](./check-in/README.md) | A module containing all model related interfaces for the Checkin model.

Note: The list of exposed models will be added to over time so the above list may be out of date. You can find all the models and their exposed interfaces [here](../../../assets/src/data/model/)
Note: The list of exposed models will be added to over time so the above list may be out of date. You can find all the models and their exposed interfaces [here](../../../assets/ZZZ/data/model/)
4 changes: 2 additions & 2 deletions docs/AAA-CSS-in-EE/README.md
Expand Up @@ -20,11 +20,11 @@ function myStyles() {

Alternatively, if you are using the classes from this stylesheet in a react component, you may also be utilizing the [ee components library](../AA--Javascript-in-EE/components/README.md). the `CoreAssetManager::CSS_HANDLE_COMPONENTS` already has the default core css as a dependency so you can safely list it only as a dependency.

As a part of the build process, a demo html file is created that highlights all the available classes and gives a visual example outlining its usage. You can view this file [here](https://htmlpreview.github.io/?https://raw.githubusercontent.com/eventespresso/event-espresso-core/master/assets/src/components/ui/styles/themes/default/demo/index.html)
As a part of the build process, a demo html file is created that highlights all the available classes and gives a visual example outlining its usage. You can view this file [here](https://htmlpreview.github.io/?https://raw.githubusercontent.com/eventespresso/event-espresso-core/master/assets/ZZZ/components/ui/styles/themes/default/demo/index.html)

## Developing

Currently the source files for all the CSS is found in [`assets/src/components/ui/styles`](../../assets/src/components/ui/styles/). As preparation for possible themeing down the road here's how the files are organized:
Currently the source files for all the CSS is found in [`assets/ZZZ/components/ui/styles`](../../assets/ZZZ/components/ui/styles/). As preparation for possible themeing down the road here's how the files are organized:

### `styles/root/*.css`
This contains all the default stylesheets that are imported as a part of the build process for the final theme stylesheet. The root stylesheets provide the fallbacks when a css variable (see next section) isn't defined in a theme.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -10,7 +10,7 @@
"build:css": {
"patterns": [
"bin/css-builder",
"assets/src/components/ui/styles"
"assets/ZZZ/components/ui/styles"
],
"ignore": "index.js"
}
Expand Down Expand Up @@ -50,7 +50,7 @@
}
},
"lint-staged": {
"assets/src/**/*.js": [
"assets/ZZZ/**/*.js": [
"wp-scripts lint-js"
]
},
Expand Down
2 changes: 1 addition & 1 deletion phpstorm-webpack.config.js
@@ -1,6 +1,6 @@
const path = require( 'path' );

const assets = 'assets/src/';
const assets = 'assets/ZZZ/';

const aliases = {
'@eventespresso/eejs': path.resolve( __dirname, assets + 'eejs' ),
Expand Down
2 changes: 1 addition & 1 deletion tests/javascript-config/unit/jest.config.json
Expand Up @@ -2,7 +2,7 @@
"rootDir": "../../../",
"preset": "@wordpress/jest-preset-default",
"collectCoverageFrom": [
"assets/src/**/*.js",
"assets/ZZZ/**/*.js",
"assets/ZZZ/**/*.js",
"!**/node_modules/**",
"!**/vendor/**",
Expand Down

0 comments on commit aff35e0

Please sign in to comment.