Remove buy template link in frontend (#102)

* Remove buy to unlock button in frontend

* Optimize frontend dockerfile
This commit is contained in:
Jonathan Zernik 2020-07-21 02:11:13 -07:00 committed by GitHub
parent cead19b024
commit 2b762438ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View file

@ -3,6 +3,8 @@ FROM node:10-stretch
RUN apt-get -qq update && apt-get -qq install -y \
unzip
RUN npm install -g serve
WORKDIR /tmp
RUN curl -sSL https://github.com/protocolbuffers/protobuf/releases/download/v3.12.2/\
@ -18,7 +20,6 @@ protoc-gen-grpc-web-1.2.0-linux-x86_64 -o /usr/local/bin/protoc-gen-grpc-web &&
COPY frontend/react-material-admin .
# Copy the proto files
RUN mkdir proto
COPY proto/* src/proto/
RUN cd src && \
@ -28,12 +29,11 @@ RUN cd src && \
# Copy the eslint prepend script.
COPY "docker/frontend/pb_disable-eslint.sh" .
RUN chmod +x pb_disable-eslint.sh
RUN ./pb_disable-eslint.sh src/proto/
RUN chmod +x pb_disable-eslint.sh && \
./pb_disable-eslint.sh src/proto/
RUN npm install
RUN npm run build
RUN npm install -g serve
RUN npm install && \
npm run build
EXPOSE 8081
CMD ["serve", "-s", "build", "-l", "8081"]

View file

@ -140,7 +140,6 @@ export default function Header(props) {
React Material Admin
</Typography>
<div className={classes.grow} />
<Button component={Link} href="https://flatlogic.com/templates/react-material-admin-full" variant={"outlined"} color={"secondary"} style={{marginRight: 24}}>Unlock full version</Button>
<div
className={classNames(classes.search, {
[classes.searchFocused]: isSearchOpen,