mirror of
https://github.com/ent/ent.git
synced 2026-03-05 19:35:23 +03:00
Ent site - changes after Moriah review
Reviewed By: dlvhdr Differential Revision: D17112173 fbshipit-source-id: df0e89212dcfa593868300fdea26b0958b0d0c95
This commit is contained in:
committed by
Facebook Github Bot
parent
78c58190be
commit
11c026e2f5
@@ -23,15 +23,15 @@ title: Predicates
|
|||||||
|
|
||||||
## Edge Predicates
|
## Edge Predicates
|
||||||
|
|
||||||
- **HasEdge**. For example, for edge named `owenr` of type `Pet`, use:
|
- **HasEdge**. For example, for edge named `owner` of type `Pet`, use:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
client.Pet.
|
client.Pet.
|
||||||
Query().
|
Query().
|
||||||
Where(user.HasOwner()).
|
Where(user.HasOwner()).
|
||||||
All(ctx)
|
All(ctx)
|
||||||
```
|
```
|
||||||
|
|
||||||
- **HasEdgeWith**. Add list of predicates for edge predicate.
|
- **HasEdgeWith**. Add list of predicates for edge predicate.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
@@ -39,7 +39,7 @@ title: Predicates
|
|||||||
Query().
|
Query().
|
||||||
Where(user.HasOwnerWith(user.Name("a8m"))).
|
Where(user.HasOwnerWith(user.Name("a8m"))).
|
||||||
All(ctx)
|
All(ctx)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Negation (NOT)
|
## Negation (NOT)
|
||||||
|
|||||||
@@ -27,16 +27,6 @@ class Footer extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<footer className="nav-footer" id="footer">
|
<footer className="nav-footer" id="footer">
|
||||||
<section className="sitemap">
|
<section className="sitemap">
|
||||||
<a href={this.props.config.baseUrl} className="nav-home">
|
|
||||||
{this.props.config.footerIcon && (
|
|
||||||
<img
|
|
||||||
src={this.props.config.baseUrl + this.props.config.footerIcon}
|
|
||||||
alt={this.props.config.title}
|
|
||||||
width="66"
|
|
||||||
height="58"
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</a>
|
|
||||||
<div>
|
<div>
|
||||||
<h5>Docs</h5>
|
<h5>Docs</h5>
|
||||||
<a href={this.docUrl('doc1.html', this.props.language)}>
|
<a href={this.docUrl('doc1.html', this.props.language)}>
|
||||||
|
|||||||
@@ -15,9 +15,14 @@ const MarkdownBlock = CompLibrary.MarkdownBlock; /* Used to read markdown */
|
|||||||
const Container = CompLibrary.Container;
|
const Container = CompLibrary.Container;
|
||||||
const GridBlock = CompLibrary.GridBlock;
|
const GridBlock = CompLibrary.GridBlock;
|
||||||
|
|
||||||
|
const arrow = '\u2192';
|
||||||
|
|
||||||
const Block = props => (
|
const Block = props => (
|
||||||
<div className="block">
|
<div className="block">
|
||||||
<div className="blockTitle">{props.title}</div>
|
<div className="blockTitle">
|
||||||
|
<div className="blockTitleText">{props.title}</div>{' '}
|
||||||
|
<div className="yellowArrow">{arrow}</div>
|
||||||
|
</div>
|
||||||
<div className="blockContent">{props.content}</div>
|
<div className="blockContent">{props.content}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -100,10 +105,13 @@ class HomeSplash extends React.Component {
|
|||||||
<a href="./docs/getting-started">
|
<a href="./docs/getting-started">
|
||||||
<div className="gettingStartedButtonText">
|
<div className="gettingStartedButtonText">
|
||||||
<div className="gettingStartedText">{'Getting Started '}</div>
|
<div className="gettingStartedText">{'Getting Started '}</div>
|
||||||
<div className="gettingStartedButtonArrow">→</div>
|
<div className="gettingStartedButtonArrow">{arrow}</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="gopherGraph">
|
||||||
|
<img src="https://entgo.io/assets/gopher_graph.png" />
|
||||||
|
</div>
|
||||||
<Features />
|
<Features />
|
||||||
</div>
|
</div>
|
||||||
</SplashContainer>
|
</SplashContainer>
|
||||||
|
|||||||
@@ -13,6 +13,29 @@
|
|||||||
src: local('Calibre Light'), url('../font/CalibreLight.woff') format('woff');
|
src: local('Calibre Light'), url('../font/CalibreLight.woff') format('woff');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Calibre Regular';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
src: local('Calibre Regular'),
|
||||||
|
url('../font/CalibreRegular.woff') format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Calibre Thin';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
src: local('Calibre Thin'), url('../font/CalibreThin.woff') format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Calibre Thin Italic';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
src: local('Calibre Thin Italic'),
|
||||||
|
url('../font/CalibreThinItalic.woff') format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Calibre Light Italic';
|
font-family: 'Calibre Light Italic';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
@@ -44,6 +67,14 @@
|
|||||||
url('../font/CalibreMediumItalic.woff') format('woff');
|
url('../font/CalibreMediumItalic.woff') format('woff');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Calibre Regular Italic';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
src: local('Calibre Regular Italic'),
|
||||||
|
url('../font/CalibreRegularItalic.woff') format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
|
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,14 +82,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 1023px) {
|
@media only screen and (max-width: 1023px) {
|
||||||
|
.docsNavContainer {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 1400px) {
|
@media only screen and (min-width: 1400px) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 1500px) {
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: #3d3e3f;
|
background: #3d3e3f;
|
||||||
}
|
}
|
||||||
@@ -71,8 +102,18 @@ body {
|
|||||||
background: #3d3e3f;
|
background: #3d3e3f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigationSlider .slidingNav ul {
|
.sideNavVisible .fixedHeaderContainer {
|
||||||
background: #3d3e3f;
|
background: white;
|
||||||
|
max-width: 1400px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sideNavVisible.navigationSlider .slidingNav ul {
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sideNavVisible .navigationSlider .slidingNav ul li a {
|
||||||
|
color: #3d3e3f !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigationSlider .slidingNav ul li > a:focus,
|
.navigationSlider .slidingNav ul li > a:focus,
|
||||||
@@ -86,7 +127,7 @@ body {
|
|||||||
.toc .toggleNav ul li.navListItemActive a,
|
.toc .toggleNav ul li.navListItemActive a,
|
||||||
.toc .toggleNav ul li a:hover,
|
.toc .toggleNav ul li a:hover,
|
||||||
.toc .toggleNav ul li a:focus {
|
.toc .toggleNav ul li a:focus {
|
||||||
color: #4d8eaa;
|
font-family: 'Calibre Regular', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.imageAlignTop .blockImage {
|
.imageAlignTop .blockImage {
|
||||||
@@ -105,12 +146,14 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.projectDesc {
|
.projectDesc {
|
||||||
font-family: 'Calibre Light Italic';
|
font-family: 'Calibre Light Italic', sans-serif;
|
||||||
font-size: 29px;
|
font-size: 26px;
|
||||||
line-height: 34px;
|
line-height: 34px;
|
||||||
color: white;
|
color: white;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
margin-left: 5px;
|
||||||
max-width: 520px;
|
max-width: 520px;
|
||||||
|
margin-bottom: 19px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 480px) {
|
@media only screen and (min-width: 480px) {
|
||||||
@@ -120,32 +163,36 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.homeContainer {
|
.homeContainer {
|
||||||
padding: 0 15%;
|
padding: 0 15% 20px;
|
||||||
padding-bottom: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.features {
|
.features {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
margin: 100px auto;
|
margin: 100px auto 0;
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.block {
|
.block {
|
||||||
width: 290px;
|
width: 320px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blockTitle {
|
.navigationSlider .slidingNav ul li a {
|
||||||
font-family: 'Calibre Medium Italic';
|
height: 22px;
|
||||||
font-size: 24px;
|
}
|
||||||
|
|
||||||
|
.block .blockTitle {
|
||||||
|
font-family: 'Calibre Light Italic', sans-serif;
|
||||||
|
line-height: 26px;
|
||||||
|
font-size: 23px;
|
||||||
color: #ffe800;
|
color: #ffe800;
|
||||||
margin-bottom: 13px;
|
margin-bottom: 10px;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blockContent {
|
.blockContent {
|
||||||
font-family: 'Calibre Light';
|
font-family: 'Calibre Thin', sans-serif;
|
||||||
font-size: 24px;
|
font-size: 22px;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
@@ -153,24 +200,25 @@ body {
|
|||||||
.gettingStartedButton {
|
.gettingStartedButton {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-radius: 31px;
|
border-radius: 31px;
|
||||||
padding: 15px 15px 7px 25px;
|
padding: 11px 15px 5px 22px;
|
||||||
background-image: linear-gradient(to right, #85c3e1, #29bbaf);
|
background-image: linear-gradient(to right, #85c3e1, #29bbaf);
|
||||||
}
|
}
|
||||||
|
|
||||||
.gettingStartedText {
|
.gettingStartedText {
|
||||||
font-family: 'Calibre Semibold';
|
font-family: 'Calibre Regular', sans-serif;
|
||||||
font-size: 28px;
|
letter-spacing: 0.03mm;
|
||||||
|
font-size: 27px;
|
||||||
color: white;
|
color: white;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gettingStartedButtonArrow {
|
.gettingStartedButtonArrow {
|
||||||
font-family: 'Calibre Bold';
|
font-family: 'Calibre Medium', sans-serif;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
font-size: 35px;
|
font-size: 35px;
|
||||||
color: white;
|
color: white;
|
||||||
margin-top: 7px;
|
margin-top: 7px;
|
||||||
margin-left: 15px;
|
margin-left: 9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.homeContainer {
|
.homeContainer {
|
||||||
@@ -186,10 +234,10 @@ body {
|
|||||||
.projectTitle p {
|
.projectTitle p {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: white;
|
color: white;
|
||||||
font-family: 'Calibre Medium';
|
font-family: 'Calibre Medium', sans-serif;
|
||||||
font-size: 56px;
|
font-size: 56px;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigationSlider .slidingNav ul li {
|
.navigationSlider .slidingNav ul li {
|
||||||
@@ -201,8 +249,8 @@ body {
|
|||||||
|
|
||||||
.navigationSlider .slidingNav ul li a {
|
.navigationSlider .slidingNav ul li a {
|
||||||
color: white;
|
color: white;
|
||||||
font-family: 'Calibre Light';
|
font-family: 'Calibre Thin', sans-serif;
|
||||||
font-size: 24px;
|
font-size: 22px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -212,7 +260,7 @@ body {
|
|||||||
|
|
||||||
.navigationSlider .slidingNav ul li a:hover {
|
.navigationSlider .slidingNav ul li a:hover {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: #4d8eaa;
|
font-family: 'Calibre Light', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerWrapper.wrapper {
|
.headerWrapper.wrapper {
|
||||||
@@ -234,7 +282,7 @@ body .homeContainer .homeWrapper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.homeContainer .homeWrapper {
|
.homeContainer .homeWrapper {
|
||||||
padding: 2em 10px 0 10px;
|
padding: 3em 10px 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@@ -286,13 +334,17 @@ a {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fixedHeaderContainer {
|
||||||
|
position: initial;
|
||||||
|
}
|
||||||
|
|
||||||
.headerWrapper.wrapper {
|
.headerWrapper.wrapper {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navPusher {
|
.navPusher {
|
||||||
padding-top: 50px;
|
padding-top: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -310,7 +362,7 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.projectTitle p {
|
.projectTitle p {
|
||||||
margin-left: 0px;
|
margin-left: 0;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -320,6 +372,11 @@ a {
|
|||||||
|
|
||||||
.fixedHeaderContainer {
|
.fixedHeaderContainer {
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sideNavVisible.separateOnPageNav .fixedHeaderContainer {
|
||||||
|
width: 100vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigationSlider .slidingNav ul li {
|
.navigationSlider .slidingNav ul li {
|
||||||
@@ -342,6 +399,11 @@ html {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gopherGraph {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
.wrapper.homeWrapper {
|
.wrapper.homeWrapper {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
@@ -372,7 +434,7 @@ header > .navigationSlider {
|
|||||||
Docs Page
|
Docs Page
|
||||||
*/
|
*/
|
||||||
.sideNavVisible header > .navigationSlider {
|
.sideNavVisible header > .navigationSlider {
|
||||||
margin-left: auto;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sideNavVisible .fixedHeaderContainer a {
|
.sideNavVisible .fixedHeaderContainer a {
|
||||||
@@ -386,13 +448,20 @@ header > .navigationSlider {
|
|||||||
.sideNavVisible .fixedHeaderContainer {
|
.sideNavVisible .fixedHeaderContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
position: fixed;
|
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sideNavVisible .navigationWrapper.navigationSlider {
|
.sideNavVisible .navigationWrapper.navigationSlider {
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 1024px) {
|
||||||
|
.navigationSlider {
|
||||||
|
height: 12px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sideNavVisible .headerWrapper.wrapper {
|
.sideNavVisible .headerWrapper.wrapper {
|
||||||
@@ -404,11 +473,70 @@ header > .navigationSlider {
|
|||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sideNavVisible .headerWrapper.wrapper header > a {
|
||||||
|
width: 288px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sideNavVisible .headerWrapper.wrapper header a {
|
||||||
|
}
|
||||||
|
|
||||||
.navigationSlider .slidingNav ul {
|
.navigationSlider .slidingNav ul {
|
||||||
margin-top: 0px;
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sideNavVisible .navigationSlider .slidingNav ul {
|
||||||
|
background: white;
|
||||||
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul,
|
ul,
|
||||||
ol {
|
ol {
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 1425px) {
|
||||||
|
.homeContainer {
|
||||||
|
max-width: 1100px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 0 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fixedHeaderContainer {
|
||||||
|
margin: 100px auto 0 auto;
|
||||||
|
width: 1100px;
|
||||||
|
padding: 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sideNavVisible.separateOnPageNav .fixedHeaderContainer {
|
||||||
|
margin-top: 35px;
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.sideNavVisible .navigationSlider .slidingNav ul li a {
|
||||||
|
font-family: 'Calibre Light', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yellowArrow {
|
||||||
|
display: inline-block;
|
||||||
|
font-family: 'Calibre Light', sans-serif;
|
||||||
|
height: 26px;
|
||||||
|
position: relative;
|
||||||
|
top: 4px;
|
||||||
|
left: 5px;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blockTitleText {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-footer .sitemap {
|
||||||
|
max-width: 1100px;
|
||||||
|
font-family: 'Calibre Light', sans-serif;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-footer .copyright {
|
||||||
|
margin: 0 auto 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
doc/website/static/font/CalibreRegular.woff
Normal file
BIN
doc/website/static/font/CalibreRegular.woff
Normal file
Binary file not shown.
BIN
doc/website/static/font/CalibreRegularItalic.woff
Normal file
BIN
doc/website/static/font/CalibreRegularItalic.woff
Normal file
Binary file not shown.
BIN
doc/website/static/font/CalibreThin.woff
Normal file
BIN
doc/website/static/font/CalibreThin.woff
Normal file
Binary file not shown.
BIN
doc/website/static/font/CalibreThinItalic.woff
Normal file
BIN
doc/website/static/font/CalibreThinItalic.woff
Normal file
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.3 KiB |
Reference in New Issue
Block a user