| title | component |
|---|---|
Liste Audio |
ContentPage |
Nodes Drupal
| @import '../variables.css'; | |
| @import '../Page/Page.css'; |
| title | component |
|---|---|
Liste Audio |
ContentPage |
Nodes Drupal
| import React from 'react'; | |
| import { REST_HOST_NAME } from '../../constants'; | |
| import Layout from '../../components/Layout'; | |
| import AudioContentPage from '../../components/AudioContentPage'; | |
| export default { | |
| path: '/audio/:id', | |
| async action({ params }) { |
| (...) | |
| constructor() { | |
| super(); | |
| this.state = { | |
| audioList: { data: [] }, | |
| }; | |
| } | |
| componentDidMount() { |
| define host { | |
| use linux-server | |
| host_name vpsxxx.xx.xx # replace | |
| alias vpsxxx # replace | |
| address 127.0.0.1 # replace | |
| max_check_attempts 5 | |
| check_period 24x7 | |
| notification_interval 30 | |
| notification_period 24x7 | |
| } |
| CREATE TABLE `company` ( | |
| `id` mediumint(8) unsigned NOT NULL auto_increment, | |
| `name` varchar(255), | |
| `description` TEXT default NULL, | |
| `phone` varchar(50) default NULL, | |
| `email` varchar(89) default NULL, | |
| `website` varchar(255) default "http://example.com", | |
| PRIMARY KEY (`id`) | |
| ) AUTO_INCREMENT=1; |
| # Drupal with PostgreSQL | |
| # | |
| # Access via "http://localhost:8080" | |
| # (or "http://$(docker-machine ip):8080" if using docker-machine) | |
| # | |
| # During initial Drupal setup, | |
| # Database type: PostgreSQL | |
| # Database name: postgres | |
| # Database username: postgres | |
| # Database password: example |
| import React from 'react'; | |
| import Layout from '../../components/Layout'; | |
| import ItineraryListPage from './ItineraryListPage'; | |
| import { JSON_API_URL } from '../../constants/env'; | |
| const title = 'Audioguide'; | |
| async function action({ locale, fetch }) { | |
| // Use Drupal locale (e.g. convert en-US to en). | |
| const languageId = locale.substring(0, 2); |
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import withStyles from 'isomorphic-style-loader/lib/withStyles'; | |
| import s from './ItineraryListPage.css'; | |
| import ItineraryTeaser from '../../components/ItineraryTeaser'; | |
| import ItineraryListHeader from '../../components/ItineraryListHeader'; | |
| import { JSON_API_URL } from '../../constants/env'; | |
| class ItineraryListPage extends React.Component { | |
| static propTypes = { |
| name: drupal-8x | |
| recipe: drupal8 | |
| config: | |
| webroot: web | |
| # Get nice URL's | |
| proxy: | |
| mailhog: | |
| - mail.drupal8.lndo.site | |
| pma: | |
| - pma.drupal8.lndo.site |