Coder Social home page Coder Social logo

nextjs's People

Contributors

xenophy avatar yukiasano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nextjs's Issues

NX.LoaderにNX自体を対応させる。

NXの名前空間内のクラスは、すべてExt.create経由で生成するように書き換えて、名前空間ごとの読み込みファイルになっているindex.jsを削除する。
初期起動時のパフォーマンス向上と、NX Core以外は基本読み込まないスタンスを統一すること。
これは、今後のライブラリ強化において、開発者が利用しないライブラリ、つまりアクションで利用されないクラスは、一生メモリ上にロードされないということになり、結果動作メモリの節約につなげる。

特に、0.7.0以降の pdfやexcel対応など、クラスが複雑、コード量の多いもの、しかも開発者により利用するかどうかわからないものを、はじめからロードしないスタイルを今のうちに確立すること。

複数のシステムを動かす

中村です。課題というのではないのですが,素朴な疑問です。

サンプルを node server.js などして動かしてみるとちゃんと動作をするのですが,複数の実装方式が異なるようなシステムをひとつのサーバーで動かしたいという要求は当然あると思うのですね。
そういった場合,NextJSでは,どのような解決方法をとれば良いのでしょうか。

http://localhost/extdirect で Ext.Directのサンプルが動き,かつ,
http://localhost/controller でコントローラーのサンプルが動くというようなイメージです。

NX.Numberクラス実装

constrain( Number number, Number min, Number max ) : Number
snap( Number value, Number increment, Number minValue, Number maxValue ) : Number
toFixed( Number value, Number precision ) : void

が未実装のため実装すること。

サブフォルダのindex.html省略でエラー

examples/static のサンプルにサブフォルダを追加して実験していましたらエラーが発生しました。

static
   |-- server.js
   |-- public_html
         |-- index.html
         |-- subdir1
                 |-- index.html

というのを作った場合,
http://localhost:3000/subdir1/
とするとエラーが発生してnode自体が落ちてしまいます。
http://localhost:3000/subdir1/index.html
とすれば正常に表示されます。

以下が node が出力したメッセージです。

Server running at http://127.0.0.1:3000/

/home/sunvisor/NextJS/lib/NX/view/WebView.js:102
                        "Content-Length": data.length,
                                              ^
TypeError: Cannot read property 'length' of undefined
    at /home/sunvisor/NextJS/lib/NX/view/WebView.js:102:47
    at [object Object].<anonymous> (fs.js:59:5)
    at [object Object].emit (events.js:42:17)
    at afterRead (fs.js:767:12)
[sunvisor@localhost all]$ node server.js
Server running at http://127.0.0.1:3000/

/home/sunvisor/NextJS/lib/NX/view/WebView.js:102
                        "Content-Length": data.length,
                                              ^
TypeError: Cannot read property 'length' of undefined
    at /home/sunvisor/NextJS/lib/NX/view/WebView.js:102:47
    at [object Object].<anonymous> (fs.js:59:5)
    at [object Object].emit (events.js:42:17)
    at afterRead (fs.js:767:12)

[不具合] staticサンプルでJsonStore利用コードが起動できない

■ 現象
 Webサーバを起動してページを表示した際に、HTTPレスポンスがかえってこない。
 ExtJSの特定のクラス(JsonStore)をインスタンスしたときに発生。

■ 再現手順
 Webサーバを起動するexamplesでpublic_html/index.htmlのscriptタグ内でJsonStoreをインスタンスするコードを記述する。
 server.js を起動して対象URLにアクセスする。

■ バージョン
 0.6.2dev

■ 補足
 確認したindex.htmlは以下。
 11行目のdata フィールドに問題があるように見える。

<script type="text/javascript" src="http://extjs.cachefly.net/ext-3.3.1/adapter/ext/ext-base-debug.js"></script> <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.3.1/ext-all-debug.js"></script>
<script type="text/javascript">
    Ext.onReady(function() {
        var st   = new Ext.data.JsonStore({
            fields : ["data"],
            root   : "root",
            data : {root : [{data:"val1"}, {data:"val2"}]}   // <-- これを削除すると動く(コメントアウトはだめ)

        });

    });
</script>

Sencha Touch Direct

Ext JSのExt.DirectをSencha Touchでも使いたい!という夢を叶える。

[不具合] テンプレートエンジンのHTMLコメントでの動作不具合

■ 現象
 Webサーバを起動してページを表示した際に、HTTPレスポンスがかえってこない。

■ 再現手順
 Webサーバを起動するexamplesでpublic_html/index.htmlのなかにコメントを追加する。
 server.js を起動して対象URLにアクセスする。

■ バージョン
 0.1.0

■ 補足
 確認したindex.htmlは以下。

<title>Twitter Sample</title>

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.