Skip to content

Commit

Permalink
Merge pull request #1436 from kintone-labs/hotfix
Browse files Browse the repository at this point in the history
SSR-3729 Hotfix
  • Loading branch information
nmanhit committed Oct 4, 2023
2 parents 380b9b4 + 22a580a commit 62fd8aa
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README-JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ text.addEventListener("change", event => {
> グローバルオブジェクトとして Kuc を使うこともできますが、2つ以上の kuc.min.js を kintone カスタマイズやプラグインに読み込む場合はバージョンコンフリクトが起きる可能性があるのでご注意ください。この際、Kuc オブジェクトは最後に読み込まれた kuc.min.js を参照します。<br>
> システム上に kuc.min.js が 1つしかない、もしくは最後に読み込まれた kuc.min.js の利用で問題ない場合は、Kuc オブジェクトを利用いただいて問題ありません。以下の `const Kuc = Kucs['1.x.x'];` の行を削除してください。<br>
> v1.3.2 以前のバージョンを利用する場合は、Kuc をグローバルオブジェクトとして使ってください。2つ以上の kuc.min.js を kintone カスタマイズやプラグインに追加すると、バージョンコンフリクト問題が起きるのでご注意ください。
> 詳しくは、[Quick Start](https://kintone-ui-component.netlify.app/docs/ja/getting-started/quick-start#installation)[Version conflicts issue and solution](https://kintone-ui-component.netlify.app/docs/ja/guides/version-conflicts-issue-solution) 記事をご確認ください。
> 詳しくは、[Quick Start](https://kintone-ui-component.netlify.app/ja/docs/getting-started/quick-start#installation)[Version conflicts issue and solution](https://kintone-ui-component.netlify.app/ja/docs/guides/version-conflicts-issue-solution) 記事をご確認ください。
## ブラウザサポート

Expand Down Expand Up @@ -118,8 +118,8 @@ kintone UI Component v0 を使用する場合は、こちらのリンクをご
## 移行ガイド
v0 と v1 の仕様とインターフェースには違いがあるので、更新時には十分な確認をしてください。<br />
詳細は下記の記事をご参照ください。
- [A commentary on the difference between v0 and v1](https://kintone-ui-component.netlify.app/docs/ja/guides/comparison-v0-v1)
- [v1.0.0 Release Notes](https://kintone-ui-component.netlify.app/docs/ja/releases/release-notes-v1.0.0)
- [A commentary on the difference between v0 and v1](https://kintone-ui-component.netlify.app/ja/docs/guides/comparison-v0-v1)
- [v1.0.0 Release Notes](https://kintone-ui-component.netlify.app/ja/docs/releases/release-notes-v1.0.0)

> v0 で提供していた React 版については、現在 v1 では対応を見送っています。
Expand Down
36 changes: 35 additions & 1 deletion docs/document/src/css/kuc-custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ details.toggle-panel summary{
}

.usecase {
margin: 0 auto
margin: 0 auto;
}
.usecase_sentense {
padding: 10px;
Expand Down Expand Up @@ -318,3 +318,37 @@ table th[class$="__table__header__cell"] {
.table-of-contents__link--active {
font-weight: 700;
}

@media screen and (max-width: 1200px) {
.support-policy {
margin: 0px 65px 20px 70px;
}
}

@media screen and (max-width: 992px) {
.usecase {
width: 100%;
}
.usecase_group {
margin: 0px 5px;
}
.usecase .usecase_image {
margin: 0px 0px 10px 0px;
}
.usecase .usecase_image img, .usecase .usecase_code {
max-width: 97%;
width: 97%;
}
.support-policy {
margin: -20px 0px 20px 0px;
}
.footer .footer__links .col {
--ifm-col-width: 33%;
}
}

@media screen and (max-width: 480px) {
.footer .footer__links .col {
--ifm-col-width: 100%;
}
}
17 changes: 10 additions & 7 deletions docs/document/src/theme/NotFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ export default function NotFound() {
return (
<BrowserOnly>
{() => {
let pathUrl = window.location.pathname;
if(pathUrl.indexOf('/en/') > -1) {
pathUrl = pathUrl.replace("/en/", "/");
const newURL = window.location.protocol + "//" + window.location.host + pathUrl;
window.location.href = newURL;
const pathUrl = window.location.pathname;
const domain = window.location.protocol + "//" + window.location.host;
if (pathUrl.indexOf('/en/') > -1) {
window.location.href = domain + pathUrl.replace("/en/", "/");
return;
}
return <NotFoundPage/>
if (pathUrl.indexOf('/docs/ja/') > -1) {
window.location.href = domain + pathUrl.replace("/docs/ja/", "/ja/docs/");
return;
}
return <NotFoundPage />;
}}
</BrowserOnly>
);
Expand Down Expand Up @@ -53,4 +56,4 @@ const NotFoundPage = () => {
</main>
</Layout>
);
}
}

0 comments on commit 62fd8aa

Please sign in to comment.