Changeset 56 in code
- Timestamp:
- Jan 19, 2024, 3:40:12 PM (17 months ago)
- Location:
- trunk
- Files:
-
- 5 added
- 5 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.gitignore
r55 r56 1 / simplytranslate1 /mai 2 2 *.gz -
trunk/Dockerfile
r48 r56 3 3 COPY . . 4 4 RUN go mod download 5 RUN go build -o simplytranslate5 RUN go build -o mai 6 6 EXPOSE 5000 7 CMD [ "./ simplytranslate" ]7 CMD [ "./mai" ] -
trunk/Makefile
r55 r56 2 2 3 3 build: 4 go build -v ./cmd/ simplytranslate4 go build -v ./cmd/mai 5 5 clean: 6 rm -f simplytranslate6 rm -f mai 7 7 install: 8 install -Dm0755 simplytranslate ${DESTDIR}${PREFIX}/bin/simplytranslate9 mkdir -p ${DESTDIR}${PREFIX}/share/ simplytranslate10 cp -R static views ${DESTDIR}${PREFIX}/share/ simplytranslate8 install -Dm0755 mai ${DESTDIR}${PREFIX}/bin/mai 9 mkdir -p ${DESTDIR}${PREFIX}/share/mai 10 cp -R static views ${DESTDIR}${PREFIX}/share/mai 11 11 uninstall: 12 rm -f ${DESTDIR}${PREFIX}/bin/ simplytranslate13 rm -rf ${DESTDIR}${PREFIX}/share/ simplytranslate12 rm -f ${DESTDIR}${PREFIX}/bin/mai 13 rm -rf ${DESTDIR}${PREFIX}/share/mai -
trunk/README.md
r55 r56 1 ## SimplyTranslate1 ## Mai 2 2 A privacy friendly frontend to multiple translation engines. 3 3 … … 6 6 2. Fattalion created a Go implementation. 7 7 3. Both metalune and fattalion retired, and they handed SimplyTranslate over to ManeraKai. 8 4. [Izuru Yakumo The Violet Hermit](https://geidontei.chaotic.ninja/usr/yakumo_izuru) stole it 8 4. [Izuru Yakumo The Violet Hermit](https://geidontei.chaotic.ninja/usr/yakumo_izuru) stole it, and renamed it after [Mai](https://en.touhouwiki.net/wiki/Mai) from [Mystic Square](https://en.touhouwiki.net/wiki/Mystic_Square) 9 9 10 10 ### Installation 11 11 12 12 ```shell 13 % git clone https://git.chaotic.ninja/yakumo.izuru/ simplytranslate14 % cd simplytranslate13 % git clone https://git.chaotic.ninja/yakumo.izuru/mai 14 % cd mai 15 15 % make 16 16 # make install … … 28 28 29 29 ### Legal notice 30 SimplyTranslate does not host any content. All content shown on anySimplyTranslate instances is from [Google Translate](https://translate.google.com) and [Reverso](https://www.reverso.net/).30 Mai does not host any content. All content shown on any Mai/Mozhi/SimplyTranslate instances is from [Google Translate](https://translate.google.com) and [Reverso](https://www.reverso.net/). 31 31 32 SimplyTranslate is not affiliated with Google Translate nor Reverso that SimplyTranslaterelays.32 Mai is not affiliated with Google Translate nor Reverso, which this program relays. 33 33 34 34 Trademarks belong to their respective owners. … … 36 36 37 37 The creators and maintainers of this repository assume no liability for the accuracy and timeliness of any information provided above. Trademark owner information was researched to the best of the author's knowledge at the time of curation and may be outdated or incorrect. 38 39 ### Other projects 40 * [Mozhi](https://codeberg.org/aryak/mozhi), also a fork of SimplyTranslate -
trunk/docker-compose.yml
r51 r56 2 2 3 3 services: 4 simplytranslate:5 container_name: simplytranslate4 mai: 5 container_name: mai 6 6 build: 7 7 context: . -
trunk/rc.d/FreeBSD
r55 r56 2 2 # $TheSupernovaDuo$ 3 3 # 4 # PROVIDE: simplytranslate4 # PROVIDE: mai 5 5 # REQUIRE: DAEMON NETWORKING syslog 6 6 # KEYWORD: shutdown … … 9 9 . /etc/rc.subr 10 10 11 name=" simplytranslate"12 rcvar=" simplytranslate_enable"11 name="mai" 12 rcvar="mai_enable" 13 13 14 14 load_rc_config $name 15 15 16 : ${ simplytranslate_user:="www"}17 : ${ simplytranslate_enable:="NO"}18 : ${ simplytranslate_config="/usr/local/etc/simplytranslate/simplytranslate.ini"}16 : ${mai_user:="www"} 17 : ${mai_enable:="NO"} 18 : ${mai_config="/usr/local/etc/mai/mai.ini"} 19 19 20 20 pidfile="/var/run/${name}.pid" 21 21 command="/usr/sbin/daemon" 22 22 procname="/usr/local/bin/${name}" 23 simplytranslate_args="-f ${simplytranslate_config}"24 command_args="-S -m 3 -s info -l daemon -p ${pidfile} /usr/bin/env ${procname} ${ simplytranslate_args}"23 mai_args="-f ${mai_config}" 24 command_args="-S -m 3 -s info -l daemon -p ${pidfile} /usr/bin/env ${procname} ${mai_args}" 25 25 26 26 run_rc_command "$1" -
trunk/rc.d/OpenBSD
r55 r56 2 2 # $TheSupernovaDuo$ 3 3 4 daemon="/usr/local/bin/ simplytranslate"5 daemon_flags="-f /usr/local/etc/ simplytranslate/simplytranslate.ini"4 daemon="/usr/local/bin/mai" 5 daemon_flags="-f /usr/local/etc/mai/mai.ini" 6 6 7 7 . /etc/rc.d/rc.subr -
trunk/views/index.html
r55 r56 2 2 <html lang="en"> 3 3 <head> 4 <title> SimplyTranslate</title>4 <title>Mai</title> 5 5 <link rel="shortcut icon" href="/static/favicon.ico"> 6 6 <meta name="description" content="Experience simple and private translations"> … … 13 13 <body> 14 14 <header class="center"> 15 <h1> SimplyTranslate</h1>15 <h1>Mai</h1> 16 16 </header> 17 17 <form action="/?engine={{.Engine}}" method="POST" id="translation-form"> … … 127 127 <br><br><br><br><br> 128 128 <footer class="center"> 129 <a href="https://git.chaotic.ninja/yakumo.izuru/simplytranslate">Source code</a><br> 130 <p>a <em>Mirage AIB</em> project</p> 129 <p> 130 <a href="https://git.chaotic.ninja/yakumo.izuru/mai">Source code</a><br> 131 a <em>Mirage AIB</em> project | Favicon source is <a href="https://pixiv.net/en/artworks/97787072">ユキマイ</a> 132 </p> 131 133 </footer> 132 134 <script src="/static/script.js"></script>
Note:
See TracChangeset
for help on using the changeset viewer.