Giter Club home page Giter Club logo

sorrypress's Introduction

Inspired by xtyxtyx/sorry and vuejs/vuepress

  • VuePress
  • Element-UI 1.x
  • Koa 2.x
  • FFmpeg
  • PM2
  • Docker
  • Redis
  • Security

Setup and develop (MacOS)

brew install ffmpeg --with-libass

# SorryPress >
npm run all:install
npm run dev
# 访问 http://localhost:8080/

Deploy

npm i -g pm2 npm-run-all

# SorryPress >
npm start
# 访问 http://localhost:7890/

# 也可以指定一些url配置
PORT=9999 npm start
SITE_ROOT=/sorry/ npm start
SERVER_ROOT=http://abc.com/ npm start

Docker

docker build -t sorrypress .
docker run -p 7890:7890 -d sorrypress

Notes

  • ffmpeg注意,如果直接覆盖原文件,会导致time缩短,文件破坏,应借助tmp
  • VuePress支持async/await进行中 vuejs/vuepress#124
  • 只使用了Element-UI 1.x,因为2.x在VuePress中报错,还没解决 vuejs/vuepress#80
/* 定制SorryPress的logo */
.hero-2 {
  position: absolute;
  transform: rotateX(-21deg) rotateY(-20deg) rotateZ(-17deg);
}
# 紧急将gif模板及ugc改为低于1M 利于在微信传播 注意借tmp
function ffmpeg_rate() {
  ffmpeg -i "$1.gif" -r $2 "$1.tmp.gif";
  mv "$1.tmp.gif" "$1.gif"
}
ffmpeg_rate wunian 10
# 给gif加入字幕
ffmpeg -i wangjingze.gif \
  -vf "ass=wangjingze.ass" \
  -y out.gif

sorrypress's People

Contributors

fritx avatar

Stargazers

 avatar  avatar Rui Wu avatar  avatar Awsl avatar  avatar  avatar Tianxiang Chen avatar  avatar LDQ-first avatar  avatar Xinyu Liu avatar  avatar SuperPaxxs avatar zhangxinyi avatar  avatar wadejs avatar xuty avatar snowdream avatar Ben avatar Helen Yin avatar Amor avatar linguokang avatar Eleven Chen avatar

Watchers

James Cloos avatar Jayin Tang avatar  avatar  avatar Helen Yin avatar xuty avatar

sorrypress's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.