How to use the olymp.cn function in olymp

To help you get started, we’ve selected a few olymp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github olymp / olymp / packages / fela / src / navbar / editable.js View on Github external
editable,
      router,
      brand,
      fill,
      pages,
      location,
      dark,
      light,
    } = this.props;
    const { query, pathname } = location;
    const navigation = !!query && query.navigation !== undefined; // null/page.id => true, undefined => false

    return (
      <div>
        <nav>
          {brand
            ? {brand}
            : null}

          <button>
              router.push({
                pathname,
                query: { navigation: navigation ? undefined : null },
              })}
            className="navbar-toggler hidden-md-up"</button></nav></div>
github olymp / olymp / src / fela / navbar / editable.js View on Github external
render() {
    const { editable, router, brand, fill, pages, location, dark, light } = this.props;
    const { query, pathname } = location;
    const navigation = !!query &amp;&amp; query.navigation !== undefined; // null/page.id =&gt; true, undefined =&gt; false

    return (
      <div>
        <nav>
          {brand ? {brand} : null}

          <button> router.push({ pathname, query: { navigation: navigation ? undefined : null } })}
            className="navbar-toggler hidden-md-up"
          &gt;
            <span></span>
          </button>

          <div>
            </div></nav></div>
github olymp / olymp / src / ekhn / components / tags / index.js View on Github external
render() {
    const { tags, className } = this.props;

    return tags &amp;&amp; tags.length ? (
      <div>
        {(tags || []).map(tag =&gt; {tag})}
      </div>
    ) : <div>;
  }
}</div>
github olymp / olymp / _old / item-decorators / order.js View on Github external
const OrderDecorator = (props) =&gt; {
    const { auth, className, hasParentItemDecorator } = props;

    return auth.user ? (
      <div>
        <button disabled="" shape="circle">
          
        </button>
        <button disabled="" shape="circle">
          
        </button>

        
      </div>
    ) : ;
  };
github olymp / olymp / src / _old / item-decorators / order.js View on Github external
const OrderDecorator = (props) =&gt; {
    const { auth, className, hasParentItemDecorator } = props;

    return auth.user
      ? <div>
        <button disabled="" shape="circle">
          
        </button>
        <button disabled="" shape="circle">
          
        </button>

        
      </div>
      : ;
  };
github olymp / olymp / src / ekhn / components / termin / index.js View on Github external
render() {
    const { items, className } = this.props;

    return (
      <div style="{{">
        <div>
          {items.map(x =&gt; )}
        </div>
      </div>
    );
  }
}
github olymp / olymp / packages / core / src / components / transitions.js View on Github external
({ className, children }) => {
        const child = Children.only(children);
        return cloneElement(child, {
          className: cn(child.props.className, className),
        });
      },
      p => Object.keys(p)
github olymp / olymp / _old / gzk-old / components / header.js View on Github external
render() {
    const { children, page, location, level, disabled, sortEndCreator, renderMenu } = this.props;
    if (!page) return null;
    return (
      
        {this.renderUtil(renderMenu, this.props) || <ul style="{{">
          {toArray(page.children).map((child, index) =&gt; this.renderItem({ ...this.props, parent: page, page: child, children: null }, index))}
          {toArray(page.headings).length &gt; 1 &amp;&amp; toArray(page.headings).map((child, index) =&gt; this.renderItem({ ...this.props, parent: page, isHeading: true, page: child, disabled: true, children: null }, index))}
          {!disabled ? <li style="{{">
            {this.renderPlus({ ...this.props })}
          </li> : null}
          {children}
        </ul>}
      
    );
  }
}
github olymp / olymp / src / gzk / blocks / card / text.js View on Github external
render() {
    const { children, title } = this.props;
    return (
      
        {title ? <h2>{title}</h2> : null}
        <div>{children}</div>
      
    );
  }
}
github olymp / olymp / src / _old / gzk-old / components / header.js View on Github external
location,
      level,
      disabled,
      sortEndCreator,
      renderMenu,
    } = this.props;
    if (!page) { return null; }
    return (
      
        {this.renderUtil(renderMenu, this.props) ||
          <ul style="{{">
            {toArray(page.children).map((child, index) =&gt;
              this.renderItem(
                { ...this.props, parent: page, page: child, children: null },
                index
              )
            )}
            {toArray(page.headings).length &gt; 1 &amp;&amp;
              toArray(page.headings).map((child, index) =&gt;
                this.renderItem(
                  {</ul>

olymp

MIT
Latest version published 4 years ago

Package Health Score

40 / 100
Full package analysis

Popular olymp functions