mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-13 12:33:25 +02:00
Remove buy template link in frontend (#102)
* Remove buy to unlock button in frontend * Optimize frontend dockerfile
This commit is contained in:
parent
cead19b024
commit
2b762438ca
2 changed files with 6 additions and 7 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue